chore(plugins/settings): start plugin at start stage, add as dependency to developer-kit to prevent race condition
This commit is contained in:
parent
fbe1852e8d
commit
44adc6679f
25 changed files with 5 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import TableRowAssetIcon from '@revenge-mod/components/TableRowAssetIcon'
|
||||
import { CopyableSetting } from '~/plugins/init/settings/definitions/shared'
|
||||
import { CopyableSetting } from '~/plugins/start/settings/definitions/shared'
|
||||
import { Setting } from '../constants'
|
||||
import { RDTContext } from '../react-devtools'
|
||||
import type { SettingsItem } from '@revenge-mod/discord/modules/settings'
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import {
|
|||
} from '@revenge-mod/discord/modules/settings'
|
||||
import { InternalPluginFlags, registerPlugin } from '@revenge-mod/plugins/_'
|
||||
import { PluginFlags } from '@revenge-mod/plugins/constants'
|
||||
import pluginSettings from '../settings'
|
||||
import type { PluginApi } from '@revenge-mod/plugins/types'
|
||||
|
||||
interface Storage {
|
||||
|
|
@ -28,6 +29,7 @@ registerPlugin<{ storage: Storage }>(
|
|||
description: 'Tools assisting Revenge developers.',
|
||||
author: 'Revenge',
|
||||
icon: 'WrenchIcon',
|
||||
dependencies: [pluginSettings],
|
||||
},
|
||||
{
|
||||
storage: {
|
||||
|
|
@ -50,8 +52,8 @@ registerPlugin<{ storage: Storage }>(
|
|||
},
|
||||
)
|
||||
},
|
||||
stop() {
|
||||
refreshSettingsOverviewScreen()
|
||||
stop({ cleanup }) {
|
||||
cleanup(refreshSettingsOverviewScreen)
|
||||
},
|
||||
},
|
||||
PluginFlags.Enabled,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue