fix leave server selected after opening once

This commit is contained in:
Anton Bracke
2022-02-23 11:49:42 +01:00
parent 44a9e2aeb0
commit da6b5b9f60
3 changed files with 6 additions and 9 deletions
+4 -2
View File
@@ -6,8 +6,9 @@ import { loadCustomScheme } from "./serve";
let mainWindow: BrowserWindow | undefined;
let appView: BrowserView | undefined;
let appViewUrl = "";
const sidebarWidth = 75;
const sidebarWidth = 80;
export function getWindow() {
return mainWindow;
@@ -128,8 +129,9 @@ export function showAppView(url?: string) {
}
mainWindow.addBrowserView(appView);
if (url) {
if (url && url !== appViewUrl) {
appView.webContents.loadURL(url);
appViewUrl = url;
}
}