Update & reload from startup update alert

This commit is contained in:
Rosie Val 2026-08-09 00:58:55 -04:00
parent a7385a58df
commit f28eba295c
2 changed files with 3 additions and 5 deletions

View file

@ -101,7 +101,7 @@ export default function PluginUpdatesFoundAlert({
<> <>
<AlertActionButton <AlertActionButton
onPress={action} onPress={action}
text="Update" text="Update & Reload"
variant="primary" variant="primary"
/> />
<AlertActionButton text="Not now" variant="secondary" /> <AlertActionButton text="Not now" variant="secondary" />

View file

@ -1,6 +1,7 @@
import { ToastActionCreators } from '@revenge-mod/discord/actions' import { ToastActionCreators } from '@revenge-mod/discord/actions'
import { onSettingsModulesLoaded } from '@revenge-mod/discord/modules/settings' import { onSettingsModulesLoaded } from '@revenge-mod/discord/modules/settings'
import { JsonStorageUpdateMode } from '@revenge-mod/json-storage' import { JsonStorageUpdateMode } from '@revenge-mod/json-storage'
import { reloadApp } from '@revenge-mod/modules/native/app'
import { import {
InternalPluginFlags, InternalPluginFlags,
PluginFlags, PluginFlags,
@ -106,10 +107,7 @@ function autoUpdateService(settings: Storage) {
.join('\n'), .join('\n'),
) )
} else { } else {
ToastActionCreators.open({ reloadApp()
key: 'PLUGIN_UPDATES_INSTALLED',
content: 'Plugins will update on the next reload',
})
} }
}) })
} catch (e) { } catch (e) {