IDEA-163208: remove obsolete registry key

also add description for 'ide.mac.touchbar.use'
This commit is contained in:
Artem Bochkarev
2018-05-10 13:07:11 +07:00
parent 0418d57ade
commit 130d61b7f5
2 changed files with 2 additions and 4 deletions
@@ -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