Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Changed Global.js to enable Native Menus for Linux #13339

Merged
merged 2 commits into from
May 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/Global.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/spec/NativeMenu-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down