fix: global config root directory may not be ready when used

This commit is contained in:
Tienson Qin
2022-10-12 22:47:18 +08:00
parent 53265f6c34
commit 24975cda01
3 changed files with 17 additions and 15 deletions

View File

@@ -341,7 +341,8 @@
(swap! path-handles assoc path handle))))
new-local-files (-> (->db-files mobile-native? electron? dir-name local-files-result)
(remove-ignore-files dir-name nfs?))
new-global-files (if (config/global-config-enabled?)
new-global-files (if (and (config/global-config-enabled?)
(global-config-handler/global-config-dir))
(p/let [global-files-result (fs/get-files
(global-config-handler/global-config-dir)
(constantly nil))