fix: preserve desktop session across restarts
This commit is contained in:
@@ -67,6 +67,17 @@ if (rendererWindowMode === 'main') {
|
||||
})
|
||||
}
|
||||
|
||||
if (rendererWindowMode === 'login') {
|
||||
if (isAuthenticated.value) {
|
||||
syncWindowMode(true)
|
||||
}
|
||||
watch(isAuthenticated, (next) => {
|
||||
if (next) {
|
||||
syncWindowMode(true)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
if (rendererWindowMode !== 'login') {
|
||||
void syncRuntimeSession().catch((err) => {
|
||||
|
||||
Reference in New Issue
Block a user