[client] Trigger login from the expired tray session row

The expired-session tray click navigated the main window to /#/login,
a route that does not exist and falls through to the main page without
starting a login. Emit the trigger-login event instead, matching
handleConnect's SessionExpired path.
This commit is contained in:
Zoltán Papp
2026-08-04 13:10:12 +02:00
parent 18b1cd443e
commit ac83d9d50b

View File

@@ -308,11 +308,7 @@ func (t *Tray) openSessionExtendFlow() {
}
seconds := int(time.Until(deadline).Seconds())
if seconds <= 0 {
if t.window != nil {
t.window.SetURL("/#/login")
t.window.Show()
t.window.Focus()
}
t.app.Event.Emit(services.EventTriggerLogin)
return
}
if t.svc.WindowManager == nil {