13
0

Only mark plugin-scan as complete if it succeeds w/o being canceled

This commit is contained in:
Robin Gareus 2021-07-12 17:26:51 +02:00
parent 127cf7aaae
commit ebbd48289d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -558,11 +558,6 @@ PluginManager::refresh (bool cache_only)
bool conceal_vst2 = false;
#endif
if (!cache_only && !cache_valid ()) {
Config->set_plugin_cache_version (cache_version ());
Config->save_state();
}
#ifdef AUDIOUNIT_SUPPORT
if (cache_only) {
BootMessage (_("Scanning AU Plugins"));
@ -599,6 +594,11 @@ PluginManager::refresh (bool cache_only)
}
}
if (!cache_only && !cache_valid () && !cancelled ()) {
Config->set_plugin_cache_version (cache_version ());
Config->save_state();
}
BootMessage (_("Plugin Scan Complete..."));
_cancel_scan = false;
PluginScanMessage(X_("closeme"), "", false);