1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-30 17:14:58 +01:00

CollectionWatcher: Make sure periodic scan is stopped

This commit is contained in:
Jonas Kvinge 2024-06-24 19:43:09 +02:00
parent 7f177aef08
commit 0038cf8c4e

View File

@ -193,7 +193,7 @@ void CollectionWatcher::ReloadSettings() {
if (monitor_ && scan_on_startup_ && mark_songs_unavailable_ && !periodic_scan_timer_->isActive()) {
periodic_scan_timer_->start();
}
else if (!mark_songs_unavailable_ && periodic_scan_timer_->isActive()) {
else if ((!monitor_ || !scan_on_startup_ || !mark_songs_unavailable_) && periodic_scan_timer_->isActive()) {
periodic_scan_timer_->stop();
}