mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 09:19:56 -05:00
fix: set rpc to idle when idle
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user