Skip to content

Commit

Permalink
Fix warning window display on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
noisymime committed Aug 1, 2021
1 parent 417125a commit 2a1966b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,14 @@ function showBasetuneWarning()
var select = document.getElementById('basetunesSelect');
selectedTune = select.options[select.selectedIndex];

// auto hide menu bar (Win, Linux)
warningWindow.setMenuBarVisibility(false);
warningWindow.setAutoHideMenuBar(true);

// remove completely when app is packaged (Win, Linux)
if (remote.app.isPackaged) {
warningWindow.removeMenu();
}

board = selectedTune.dataset.board
warningWindow.loadURL(`file://${__dirname}/warning.html?board=` + board);
Expand Down

0 comments on commit 2a1966b

Please sign in to comment.