Skip to content

Commit

Permalink
Fixed release menu
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Sep 2, 2020
1 parent 96c20cf commit ce913e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src.main/ElectronMain.hx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ class ElectronMain {
title: "L-Ed",
});

// Debug menu
// Menu
#if debug
enableDebugMenu();
#else
mainWindow.setMenu(null);
#end

// Start renderer part
Expand Down Expand Up @@ -94,7 +96,7 @@ class ElectronMain {
]
}]);

electron.main.Menu.setApplicationMenu(menu);
mainWindow.setMenu(menu);
}
#end
}

0 comments on commit ce913e8

Please sign in to comment.