[Update/Refactor] Automatically disable and save the status to config.json if the plugin is not supported.

This commit is contained in:
Sakamoto Shiina
2025-04-17 19:44:14 +09:00
parent b8c1688172
commit fd59c0b28f
3 changed files with 33 additions and 29 deletions

View File

@@ -10,6 +10,7 @@ export const MergePluginsController = () => {
currentFetchedPluginsInfo,
currentSavedPluginsStatus,
downloadAndExtractPlugin,
toggleSavedPluginStatus,
} = usePlugins();
const { checkVrctVerCompatibility } = useSoftwareVersion();
@@ -129,6 +130,7 @@ export const MergePluginsController = () => {
!plugin.latest_plugin_info?.is_plugin_supported
) {
plugin.is_enabled = false;
toggleSavedPluginStatus(plugin.plugin_id);
}
}
});