mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[mac] enable async clipboard by default
This commit is contained in:
@@ -286,7 +286,6 @@ public class ClipboardSynchronizer implements ApplicationComponent {
|
||||
@Nullable
|
||||
public static Transferable getContentsSafe() {
|
||||
final Ref<Transferable> result = new Ref<Transferable>();
|
||||
if (Registry.is("ide.mac.useNativeClipboard.async")) {
|
||||
final JRootPane pane = getRootPane();
|
||||
if (pane != null) {
|
||||
try {
|
||||
@@ -312,7 +311,6 @@ public class ClipboardSynchronizer implements ApplicationComponent {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
if (SwingUtilities.isEventDispatchThread()) {
|
||||
run.run();
|
||||
} else {
|
||||
@@ -331,19 +329,6 @@ public class ClipboardSynchronizer implements ApplicationComponent {
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Foundation.executeOnMainThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Transferable transferable = getClipboardContentNatively();
|
||||
if (transferable != null) {
|
||||
result.set(transferable);
|
||||
}
|
||||
}
|
||||
}, true, true);
|
||||
|
||||
return result.get();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -154,7 +154,6 @@ show.live.templates.in.completion=false
|
||||
documentation.component.editor.font=false
|
||||
|
||||
ide.mac.useNativeClipboard=true
|
||||
ide.mac.useNativeClipboard.async=false
|
||||
|
||||
show.all.classes.on.first.completion=false
|
||||
limited.relevance.sorting.in.completion=false
|
||||
|
||||
Reference in New Issue
Block a user