fix: update api to allow requesting network permissions

This commit is contained in:
Ian Chua committed 2026-10-20 01:15:14 +08:00
1 parent 4c2ae6d202
commit 6c791532c6
8 files changed
+765 -119

No files matched your search

+2 -6
View File
@@ -1180,12 +1180,8 @@ void PluginManager::mark_plugin_install_state_disabled(const std::string& plugin
const boost::filesystem::path root(descriptor.plugin_root);
PluginInstallState state;
if (!read_install_state(root, state)) {
state.installed_from = descriptor.is_cloud_plugin() ? "cloud" : "local";
state.installed_version = !descriptor.installed_version.empty() ? descriptor.installed_version : descriptor.version;
state.plugin_name = descriptor.name;
state.cloud_uuid = descriptor.cloud_uuid();
}
if (!read_install_state(root, state))
seed_install_metadata(state, descriptor);
state.enabled = false;
if (!write_install_state(root, state))
return;