fix: set rpc to idle when idle

This commit is contained in:
frozenKelp
2026-06-09 20:13:41 +05:30
parent 22c4a222d8
commit 32bdeb92ff
2 changed files with 15 additions and 2 deletions
+4
View File
@@ -154,6 +154,10 @@
if (appState.status === 'ready') resetIdleTimer()
})
$effect(() => {
if (appState.idleSplash && settingsState.settings.discordRpc) setIdle().catch(() => {})
})
$effect(() => {
if (appState.status !== 'ready') return
// capture phase so events from any component — including modals — reset the timer