Get version number from package.json on app start

This is easy to miss when prepping a new release so I figured we might as well automate it
This commit is contained in:
CakeLancelot
2023-02-09 05:32:21 -06:00
parent 5da0da1981
commit d554b6b968
6 changed files with 25 additions and 6 deletions

View File

@@ -174,6 +174,7 @@ function showMainWindow() {
// Reduces white flash when opening the program
mainWindow.webContents.on("did-finish-load", function () {
mainWindow.webContents.executeJavaScript("setAppVersionText();");
mainWindow.show();
// everything's loaded, tell the renderer process to do its thing
mainWindow.webContents.executeJavaScript("loadConfig();");