feat: add tab memory with Remember Tabs setting

This commit is contained in:
2026-04-11 05:46:47 -07:00
parent d76136feb5
commit d311bf4a7e
4 changed files with 54 additions and 2 deletions
+8 -1
View File
@@ -555,7 +555,7 @@ function buildGeneralSection(
onChange: (v) => { perf.fpsUnlocked = v; ipcRenderer.invoke('set-config', 'performance', perf); },
}));
const gameDefaults = { lastServer: '', socialTabBehaviour: 'New Window' };
const gameDefaults = { lastServer: '', socialTabBehaviour: 'New Window', rememberTabs: false };
const game = { ...gameDefaults, ...gameConf };
body.appendChild(createSelectRow({
@@ -566,6 +566,13 @@ function buildGeneralSection(
onChange: (v) => { game.socialTabBehaviour = v; ipcRenderer.invoke('set-config', 'game', game); },
}));
body.appendChild(createToggleRow({
label: 'Remember Tabs',
desc: 'Restore your open tabs when you reopen the social/hub window',
checked: game.rememberTabs, instant: true,
onChange: (v) => { game.rememberTabs = v; ipcRenderer.invoke('set-config', 'game', game); },
}));
const uiDefaults = { showExitButton: true, deathscreenAnimation: false, hideMenuPopups: false };
const ui = { ...uiDefaults, ...uiConfRaw };