[Refactor] Remove the code that is no longer in use.
This commit is contained in:
@@ -4,7 +4,6 @@ import { usePlugins } from "@logics_configs";
|
||||
export const LoadPluginsController = ({ pluginsControllerHasRunRef }) => {
|
||||
const {
|
||||
asyncLoadAllPlugins,
|
||||
updateIsInitializedLoadPlugin,
|
||||
} = usePlugins();
|
||||
|
||||
const asyncInitLoadPlugins = async () => {
|
||||
@@ -17,9 +16,7 @@ export const LoadPluginsController = ({ pluginsControllerHasRunRef }) => {
|
||||
|
||||
useEffect(() => {
|
||||
if (!pluginsControllerHasRunRef.current.is_initialized_load_plugin) {
|
||||
asyncInitLoadPlugins().then(() => {
|
||||
updateIsInitializedLoadPlugin(true);
|
||||
});
|
||||
asyncInitLoadPlugins();
|
||||
pluginsControllerHasRunRef.current.is_initialized_load_plugin = true;
|
||||
}
|
||||
}, []);
|
||||
|
||||
@@ -10,7 +10,7 @@ export const MergePluginsController = () => {
|
||||
currentFetchedPluginsInfo,
|
||||
currentSavedPluginsStatus,
|
||||
downloadAndExtractPlugin,
|
||||
toggleSavedPluginStatus,
|
||||
toggleSavedPluginsStatus,
|
||||
} = usePlugins();
|
||||
const { checkVrctVerCompatibility } = useSoftwareVersion();
|
||||
|
||||
@@ -131,7 +131,7 @@ export const MergePluginsController = () => {
|
||||
!plugin.latest_plugin_info?.is_plugin_supported
|
||||
) {
|
||||
plugin.is_enabled = false;
|
||||
toggleSavedPluginStatus(plugin.plugin_id);
|
||||
toggleSavedPluginsStatus(plugin.plugin_id);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user