From 3563a43156ff3129bb31ac629f5121387f46a926 Mon Sep 17 00:00:00 2001 From: Nuintun Date: Fri, 20 Nov 2015 18:05:05 +0800 Subject: [PATCH] update files --- bin/app-configure.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/app-configure.js b/bin/app-configure.js index e5f5835..0bb9753 100644 --- a/bin/app-configure.js +++ b/bin/app-configure.js @@ -17,6 +17,7 @@ const USERDATA = app.getPath('userData'); const USERDESKTOP = app.getPath('userDesktop'); const CONFIGURENAME = 'command-manager.config'; const CONFIGUREPATH = join(USERDATA, CONFIGURENAME); +const TEMPCONFIGUREPATH = join(USERDESKTOP, CONFIGURENAME); const DEFAULTCONFIGURE = { projects: [] }; const ERRORMESSAGE = { NONEXISTS: '不存在', @@ -254,7 +255,7 @@ AppConfigure.prototype = { // show open dialog dialog.showOpenDialog(this.window, { title: this.title, - defaultPath: CONFIGURENAME, + defaultPath: TEMPCONFIGUREPATH, properties: ['openFile'], filters: [{ name: 'Config Files', extensions: ['config'] }] }, function (paths){ @@ -298,7 +299,7 @@ AppConfigure.prototype = { // show save dialog dialog.showSaveDialog(this.window, { title: this.title, - defaultPath: join(USERDESKTOP, CONFIGURENAME), + defaultPath: TEMPCONFIGUREPATH, filters: [{ name: 'Config Files', extensions: ['config'] }] }, function (path){ if (path) {