Skip to content

Commit 22943da

Browse files
committed
Make sure watched directories are synced initially
1 parent ee09050 commit 22943da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/daemon/daemon.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ namespace appimagelauncher::daemon {
119119
}
120120

121121
bool Daemon::startWatching() {
122+
// make sure the watched directories list is up to date
123+
_watcher->updateWatchedDirectories(watchedDirectories());
124+
122125
// search directories to watch once initially
123126
// we *have* to do this even though we connect this signal above, as the first update occurs in the constructor
124127
// and we cannot connect signals before construction has finished for obvious reasons

0 commit comments

Comments
 (0)