We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b62d9fe commit d0e8996Copy full SHA for d0e8996
src/main.ts
@@ -836,10 +836,17 @@ export default class InvioPlugin extends Plugin {
836
// Add custom icon for root dir
837
setTimeout(() => {
838
if (this.settings.localWatchDir) {
839
- this.ga.trace('boot_project', {
840
- dirname: this.settings.localWatchDir
841
- });
842
- this.switchWorkingDir(this.settings.localWatchDir);
+ this.app.vault.adapter.exists(this.settings.localWatchDir)
+ .then(dirWatching => {
+ if (dirWatching) {
+ this.ga.trace('boot_project', {
843
+ dirname: this.settings.localWatchDir
844
+ });
845
+ this.switchWorkingDir(this.settings.localWatchDir);
846
+ } else {
847
+ Utils.mockLocaleFile(this)
848
+ }
849
+ })
850
} else {
851
new Notice(
852
t("syncrun_no_watchdir_err")
0 commit comments