From 2a1966b2be38d3e8afbe4549b653a8526b4ec795 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Sun, 1 Aug 2021 22:27:46 +1000 Subject: [PATCH] Fix warning window display on Windows --- renderer.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/renderer.js b/renderer.js index 05aaf7b..5664c82 100644 --- a/renderer.js +++ b/renderer.js @@ -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);