fix(file system watcher): 修复文件索引关闭再打开后丢失监听的问题
文件监听在关闭后没哟正确清空所有缓存,导致再次重新开启监听后不能正确添加监听
This commit is contained in:
parent
d6ef08f769
commit
3fd7f2183d
|
@ -145,6 +145,7 @@ void FileSystemWatcherPrivate::clearAll()
|
|||
m_notifier = nullptr;
|
||||
}
|
||||
m_watchPathHash.clear();
|
||||
m_watchedRootPaths.clear();
|
||||
init();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue