diff --git a/src/components/mainMenu.vue b/src/components/mainMenu.vue index 064ca2e1..6be2839a 100644 --- a/src/components/mainMenu.vue +++ b/src/components/mainMenu.vue @@ -113,7 +113,7 @@ export default defineComponent({ try { const log_path = await util.getLogPath(); util.infoLogger('log path acquired:' + log_path); - await tauri.invoke("open_folder", {dir: log_path}); + await tauri.invoke('open_folder', {dir: log_path}); } catch (error) { // TODO: add proper error handling - update store and show error page util.errorLogger(error); diff --git a/src/pages/SetupPlot.vue b/src/pages/SetupPlot.vue index c60ff62b..4d0f4d68 100644 --- a/src/pages/SetupPlot.vue +++ b/src/pages/SetupPlot.vue @@ -228,7 +228,7 @@ export default defineComponent({ }, async mounted() { await this.updateDriveStats(); - const path = (await tauri.path.dataDir()) + util.appName; + const path = (await tauri.path.dataDir()) + util.appName + '/plots'; this.store.setPlotPath(path); }, async created() { @@ -248,6 +248,8 @@ export default defineComponent({ methods: { async confirmCreateDir() { const dirExists = await native.dirExists(this.store.plotPath); + console.log('🚀 ~ file: SetupPlot.vue ~ line 251 ~ confirmCreateDir ~ this.store.plotPath', this.store.plotPath); + console.log('🚀 ~ file: SetupPlot.vue ~ line 251 ~ confirmCreateDir ~ dirExists', dirExists); if (dirExists) { util.infoLogger('SETUP PLOT | found the old plotting directory'); @@ -258,6 +260,7 @@ export default defineComponent({ }); if (files) { + console.log('🚀 ~ file: SetupPlot.vue ~ line 262 ~ confirmCreateDir ~ files', files); console.log('FILES ARE: :', files); if (files.length === 0 || (files.length === 1 && files.some(item => item.name === 'subspace-desktop.cfg'))) { directoryDialogs.existingDirectoryConfirm(this.store.plotPath, this.startPlotting); diff --git a/src/shims-vue.d.ts b/src/shims-vue.d.ts index 26163c40..19479361 100644 --- a/src/shims-vue.d.ts +++ b/src/shims-vue.d.ts @@ -1,6 +1,6 @@ // Mocks all files ending in `.vue` showing them as plain Vue instances declare module '*.vue' { - import { ComponentOptions } from 'vue' - const component: ComponentOptions - export default component + import { ComponentOptions } from 'vue'; + const component: ComponentOptions; + export default component; }