From 8921a4378e3700eab960194e19eda0be2ef82586 Mon Sep 17 00:00:00 2001 From: Jonathan Deates Date: Tue, 10 Jan 2023 12:12:56 -0600 Subject: [PATCH] Fixed bug where it dumps the second pull into the top level. --- main.js | 4 +++- main.ts | 9 --------- src/generateFilePath.ts | 4 +++- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/main.js b/main.js index f6db1a9..aaa8722 100644 --- a/main.js +++ b/main.js @@ -161,8 +161,10 @@ async function generateFilePath(folderPath) { } } new import_obsidian3.Notice("Folders Created For Story Output"); + return currentFolderPath; + } else { + return folderPath; } - return currentFolderPath; } // main.ts diff --git a/main.ts b/main.ts index b50e3a2..af9f94e 100644 --- a/main.ts +++ b/main.ts @@ -66,15 +66,6 @@ export default class MyPlugin extends Plugin { // This adds a settings tab so the user can configure various aspects of the plugin this.addSettingTab(new TrackerIntegrationSettingTab(this.app, this)); - - // // If the plugin hooks up any global DOM events (on parts of the app that doesn't belong to this plugin) - // // Using this function will automatically remove the event listener when this plugin is disabled. - // this.registerDomEvent(document, 'click', (evt: MouseEvent) => { - // console.log('click', evt); - // }); - - // When registering intervals, this function will automatically clear the interval when the plugin is disabled. - // this.registerInterval(window.setInterval(() => console.log('setInterval'), 5 * 60 * 1000)); } async loadSettings() { diff --git a/src/generateFilePath.ts b/src/generateFilePath.ts index 27ddabd..91fea05 100644 --- a/src/generateFilePath.ts +++ b/src/generateFilePath.ts @@ -17,6 +17,8 @@ export default async function generateFilePath(folderPath: string): Promise