From 98a7df15fa0ca7937bdec7fe2e647384fcfaf060 Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Wed, 4 Nov 2020 02:17:57 +0900 Subject: [PATCH] fix registry file config --- .../{DirectoryItem.vue => FileItem.vue} | 4 ++-- src/views/pages/Config.vue | 21 +++++++++++++------ 2 files changed, 17 insertions(+), 8 deletions(-) rename src/components/config/{DirectoryItem.vue => FileItem.vue} (86%) diff --git a/src/components/config/DirectoryItem.vue b/src/components/config/FileItem.vue similarity index 86% rename from src/components/config/DirectoryItem.vue rename to src/components/config/FileItem.vue index 78ef058..0e545cf 100644 --- a/src/components/config/DirectoryItem.vue +++ b/src/components/config/FileItem.vue @@ -32,9 +32,9 @@ export default { }, methods: { async onSelectDir() { - const { filePaths } = await dialog.showOpenDialog({ title: 'Select Your Registry Location', buttonLabel: 'Select', properties: ['openDirectory'] }); + const { filePath } = await dialog.showSaveDialog({ title: 'Select Your Registry Location', defaultPath: 'registry.dat', nameFieldLabel: 'Filename', buttonLabel: 'Select' }); - this.path = filePaths ? filePaths[0] : null; + this.path = filePath || ''; this.$emit('change', this.path); } diff --git a/src/views/pages/Config.vue b/src/views/pages/Config.vue index cba0c1a..860a3c1 100644 --- a/src/views/pages/Config.vue +++ b/src/views/pages/Config.vue @@ -56,10 +56,10 @@ - - + + - +
Advanced
@@ -81,6 +81,7 @@