mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-163208: remove obsolete registry key
also add description for 'ide.mac.touchbar.use'
This commit is contained in:
@@ -21,18 +21,16 @@ import java.util.Map;
|
||||
public class NST {
|
||||
private static final Logger LOG = Logger.getInstance(NST.class);
|
||||
private static final String ourRegistryKeyTouchbar = "ide.mac.touchbar.use";
|
||||
private static final String ourRegistryKeyDoCheckEnv = "ide.mac.touchbar.check.env";
|
||||
private static final NSTLibrary ourNSTLibrary; // NOTE: JNA is stateless (doesn't have any limitations of multi-threaded use)
|
||||
|
||||
static {
|
||||
final boolean isSystemSupportTouchbar = SystemInfo.isMac && SystemInfo.isOsVersionAtLeast("10.12.2");
|
||||
final boolean isRegistryKeyEnabled = Registry.is(ourRegistryKeyTouchbar, false);
|
||||
final boolean doCheckEnv = Registry.is(ourRegistryKeyDoCheckEnv, true);
|
||||
NSTLibrary lib = null;
|
||||
if (
|
||||
isSystemSupportTouchbar
|
||||
&& isRegistryKeyEnabled
|
||||
&& (!doCheckEnv || SystemSettingsTouchBar.isTouchBarServerRunning())
|
||||
&& SystemSettingsTouchBar.isTouchBarServerRunning()
|
||||
) {
|
||||
try {
|
||||
UrlClassLoader.loadPlatformLibrary("nst");
|
||||
|
||||
@@ -1297,7 +1297,7 @@ markdown.clear.cache.interval=600000
|
||||
ide.mac.new.color.picker=false
|
||||
|
||||
ide.mac.touchbar.use = true
|
||||
ide.mac.touchbar.check.env = true
|
||||
ide.mac.touchbar.use.description=Enable MacBook Touch Bar support
|
||||
|
||||
trace.focus.on.app.activation=false
|
||||
trace.focus.on.app.activation.description=Focus tracing on application activation and deactivation
|
||||
|
||||
Reference in New Issue
Block a user