Plugin-scan-dialog: show popup only if scan-timeout is > 40sec

This commit is contained in:
Robin Gareus
2021-07-22 23:07:32 +02:00
parent 789e0f8dbc
commit 57ec56ffc5

View File

@@ -261,7 +261,7 @@ PluginScanDialog::plugin_scan_timeout (int timeout)
if (timeout > 0) {
int scan_timeout = Config->get_plugin_scan_timeout ();
pbar.set_sensitive (true);
if (timeout < scan_timeout / 2 || (scan_timeout - timeout) > 300) {
if (scan_timeout > 400 && (scan_timeout - timeout) > 300) {
timeout_info.show ();
}
if (timeout < scan_timeout) {