fix: reserve plugin enable state during rescans

This commit is contained in:
Ian Chua
2026-07-20 18:40:31 +08:00
parent fd2bd3c7ec
commit 28feb8480e
4 changed files with 15 additions and 7 deletions

View File

@@ -321,6 +321,8 @@ void PluginManager::merge_discovered_plugins(std::vector<PluginDescriptor> disco
// A manifest-only rescan has nothing to say about capabilities, so the live module and
// instances are left alone.
if (!descriptor.install_state_valid)
descriptor.enabled = existing->descriptor.enabled;
existing->descriptor = std::move(descriptor);
}