Fix warning window display on Windows

This commit is contained in:
Josh Stewart 2021-08-01 22:27:46 +10:00
parent 417125a8bd
commit 2a1966b2be
1 changed files with 8 additions and 0 deletions

View File

@ -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);