From 5c8dcc0869da520c2205b76ca75907335fea7f05 Mon Sep 17 00:00:00 2001 From: Saurabh Kathpalia Date: Tue, 25 Apr 2017 19:36:09 +0530 Subject: [PATCH 1/2] Changed Global.js to enable Native Menus for Linux --- src/utils/Global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Global.js b/src/utils/Global.js index 97640477b92..6eb0beeb1af 100644 --- a/src/utils/Global.js +++ b/src/utils/Global.js @@ -81,7 +81,7 @@ define(function (require, exports, module) { if (hasNativeMenus) { global.brackets.nativeMenus = (hasNativeMenus === "true"); } else { - global.brackets.nativeMenus = (!global.brackets.inBrowser && (global.brackets.platform !== "linux")); + global.brackets.nativeMenus = (!global.brackets.inBrowser); } // Locale-related APIs From 306b10ee00ad49fa2a6b7b9bc2c17ca77d5a4b6e Mon Sep 17 00:00:00 2001 From: Saurabh Kathpalia Date: Thu, 27 Apr 2017 13:25:24 +0530 Subject: [PATCH 2/2] Enabled tests for Native Menus in Linux --- test/spec/NativeMenu-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec/NativeMenu-test.js b/test/spec/NativeMenu-test.js index 98fa2ef3839..897fb757f2f 100644 --- a/test/spec/NativeMenu-test.js +++ b/test/spec/NativeMenu-test.js @@ -28,8 +28,8 @@ define(function (require, exports, module) { require("utils/Global"); - // Don't run tests when running in browser or linux - if (brackets.inBrowser || brackets.platform === "linux") { + // Don't run tests when running in browser + if (brackets.inBrowser) { return; }