diff --git a/build-scripts/build-all.ps1 b/build-scripts/build-all.ps1 index 07aa1aec..c39f8c2c 100644 --- a/build-scripts/build-all.ps1 +++ b/build-scripts/build-all.ps1 @@ -11,7 +11,7 @@ $ZipName = "VRCX_" + $Date + ".zip" $SetupName = "VRCX_" + $Date + "_Setup.exe" Write-Host "Building .Net..." -ForegroundColor Green -dotnet build Dotnet\VRCX-Cef.csproj -p:Configuration=Release -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained +dotnet build Dotnet\VRCX-Cef.csproj -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained Write-Host "Building Node.js..." -ForegroundColor Green Remove-Item -Path "node_modules" -Force -Recurse -ErrorAction SilentlyContinue diff --git a/build-scripts/dotnet/build-dotnet.cmd b/build-scripts/dotnet/build-dotnet.cmd index 54debb8d..759422b2 100644 --- a/build-scripts/dotnet/build-dotnet.cmd +++ b/build-scripts/dotnet/build-dotnet.cmd @@ -1,4 +1,4 @@ @echo off cd ../../ -dotnet build Dotnet\VRCX-Cef.csproj -p:Configuration=Release -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained +dotnet build Dotnet\VRCX-Cef.csproj -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained pause diff --git a/src-electron/main.js b/src-electron/main.js index d8292188..094f74b0 100644 --- a/src-electron/main.js +++ b/src-electron/main.js @@ -533,18 +533,14 @@ function createTray() { label: 'Open', type: 'normal', click: function () { - BrowserWindow.getAllWindows().forEach(function (win) { - win.show(); - }); + mainWindow.show(); } }, { label: 'DevTools', type: 'normal', click: function () { - BrowserWindow.getAllWindows().forEach(function (win) { - win.webContents.openDevTools(); - }); + mainWindow.webContents.openDevTools(); } }, { @@ -560,9 +556,7 @@ function createTray() { tray.setContextMenu(contextMenu); tray.on('click', () => { - BrowserWindow.getAllWindows().forEach(function (win) { - win.show(); - }); + mainWindow.show(); }); }