Update & reload from startup update alert
This commit is contained in:
parent
a7385a58df
commit
f28eba295c
2 changed files with 3 additions and 5 deletions
|
|
@ -101,7 +101,7 @@ export default function PluginUpdatesFoundAlert({
|
|||
<>
|
||||
<AlertActionButton
|
||||
onPress={action}
|
||||
text="Update"
|
||||
text="Update & Reload"
|
||||
variant="primary"
|
||||
/>
|
||||
<AlertActionButton text="Not now" variant="secondary" />
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import { ToastActionCreators } from '@revenge-mod/discord/actions'
|
||||
import { onSettingsModulesLoaded } from '@revenge-mod/discord/modules/settings'
|
||||
import { JsonStorageUpdateMode } from '@revenge-mod/json-storage'
|
||||
import { reloadApp } from '@revenge-mod/modules/native/app'
|
||||
import {
|
||||
InternalPluginFlags,
|
||||
PluginFlags,
|
||||
|
|
@ -106,10 +107,7 @@ function autoUpdateService(settings: Storage) {
|
|||
.join('\n'),
|
||||
)
|
||||
} else {
|
||||
ToastActionCreators.open({
|
||||
key: 'PLUGIN_UPDATES_INSTALLED',
|
||||
content: 'Plugins will update on the next reload',
|
||||
})
|
||||
reloadApp()
|
||||
}
|
||||
})
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue