From adf93c85fe292efff5d7b840ebc146fbdec02eb2 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 17 Jul 2021 01:02:21 +0200 Subject: [PATCH] PM: scan-timeout count-down even if timeout is stopped This allows the GUI to determine for how long the scanner ran after the timeout was canceled. Count up to 90 sec. --- libs/ardour/plugin_manager.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index d7356a7af0..37c0fa3c71 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -1191,7 +1191,7 @@ PluginManager::run_auv2_scanner_app (CAComponentDescription const& desc, AUv2Des } ARDOUR::PluginScanTimeout (timeout); - if (timeout > 0) { + if (timeout > -900) { --timeout; } Glib::usleep (100000); @@ -1481,7 +1481,7 @@ PluginManager::run_vst2_scanner_app (std::string path, PSLEPtr psle) const } ARDOUR::PluginScanTimeout (timeout); - if (timeout > 0) { + if (timeout > -900) { --timeout; } Glib::usleep (100000); @@ -2222,7 +2222,7 @@ PluginManager::run_vst3_scanner_app (std::string bundle_path, PSLEPtr psle) cons } ARDOUR::PluginScanTimeout (timeout); - if (timeout > 0) { + if (timeout > -900) { --timeout; } Glib::usleep (100000);