fix(file system watcher): 修复文件索引关闭再打开后丢失监听的问题

文件监听在关闭后没哟正确清空所有缓存,导致再次重新开启监听后不能正确添加监听
This commit is contained in:
iaom 2023-07-28 10:47:38 +08:00
parent d6ef08f769
commit 3fd7f2183d
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ void FileSystemWatcherPrivate::clearAll()
m_notifier = nullptr;
}
m_watchPathHash.clear();
m_watchedRootPaths.clear();
init();
}