mirror of
https://github.com/HighCapable/YukiHookAPI-ProjectBuilder.git
synced 2025-09-04 01:35:23 +08:00
Added when project created show save to template dialog function
This commit is contained in:
@@ -407,13 +407,23 @@ const build = {
|
|||||||
*/
|
*/
|
||||||
complete: (msg) => {
|
complete: (msg) => {
|
||||||
dialogs.packagingProgress.close();
|
dialogs.packagingProgress.close();
|
||||||
|
|
||||||
|
/** 显示保存为模版对话框 */
|
||||||
|
function showSaveToTemplate() {
|
||||||
|
mdui.confirm(locale.i18n.doYouWantSaveConfigTemplateTip, locale.i18n.notice, () => {
|
||||||
|
build.unlockStatus();
|
||||||
|
configTemplate.createNew();
|
||||||
|
}, () => {
|
||||||
|
build.unlockStatus();
|
||||||
|
page.reload();
|
||||||
|
}, {confirmText: locale.i18n.ok, cancelText: locale.i18n.cancel, modal: true, closeOnEsc: false});
|
||||||
|
}
|
||||||
|
|
||||||
mdui.confirm(msg, locale.i18n.buildComplete, () => {
|
mdui.confirm(msg, locale.i18n.buildComplete, () => {
|
||||||
ipcRenderer.send('open-complete-project');
|
ipcRenderer.send('open-complete-project');
|
||||||
build.unlockStatus();
|
showSaveToTemplate();
|
||||||
page.reload();
|
|
||||||
}, () => {
|
}, () => {
|
||||||
build.unlockStatus();
|
showSaveToTemplate();
|
||||||
page.reload();
|
|
||||||
}, {confirmText: locale.i18n.openProject, cancelText: locale.i18n.done, modal: true, closeOnEsc: false});
|
}, {confirmText: locale.i18n.openProject, cancelText: locale.i18n.done, modal: true, closeOnEsc: false});
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user