mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-07 11:34:05 +08:00
update files
This commit is contained in:
parent
9420e3613f
commit
3563a43156
@ -17,6 +17,7 @@ const USERDATA = app.getPath('userData');
|
|||||||
const USERDESKTOP = app.getPath('userDesktop');
|
const USERDESKTOP = app.getPath('userDesktop');
|
||||||
const CONFIGURENAME = 'command-manager.config';
|
const CONFIGURENAME = 'command-manager.config';
|
||||||
const CONFIGUREPATH = join(USERDATA, CONFIGURENAME);
|
const CONFIGUREPATH = join(USERDATA, CONFIGURENAME);
|
||||||
|
const TEMPCONFIGUREPATH = join(USERDESKTOP, CONFIGURENAME);
|
||||||
const DEFAULTCONFIGURE = { projects: [] };
|
const DEFAULTCONFIGURE = { projects: [] };
|
||||||
const ERRORMESSAGE = {
|
const ERRORMESSAGE = {
|
||||||
NONEXISTS: '不存在',
|
NONEXISTS: '不存在',
|
||||||
@ -254,7 +255,7 @@ AppConfigure.prototype = {
|
|||||||
// show open dialog
|
// show open dialog
|
||||||
dialog.showOpenDialog(this.window, {
|
dialog.showOpenDialog(this.window, {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
defaultPath: CONFIGURENAME,
|
defaultPath: TEMPCONFIGUREPATH,
|
||||||
properties: ['openFile'],
|
properties: ['openFile'],
|
||||||
filters: [{ name: 'Config Files', extensions: ['config'] }]
|
filters: [{ name: 'Config Files', extensions: ['config'] }]
|
||||||
}, function (paths){
|
}, function (paths){
|
||||||
@ -298,7 +299,7 @@ AppConfigure.prototype = {
|
|||||||
// show save dialog
|
// show save dialog
|
||||||
dialog.showSaveDialog(this.window, {
|
dialog.showSaveDialog(this.window, {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
defaultPath: join(USERDESKTOP, CONFIGURENAME),
|
defaultPath: TEMPCONFIGUREPATH,
|
||||||
filters: [{ name: 'Config Files', extensions: ['config'] }]
|
filters: [{ name: 'Config Files', extensions: ['config'] }]
|
||||||
}, function (path){
|
}, function (path){
|
||||||
if (path) {
|
if (path) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user