fix for confirm

This commit is contained in:
booploops 2022-02-13 23:12:55 -08:00
parent 9a3274ff67
commit 2d9ca47f26

View file

@ -49,7 +49,8 @@
let msg = app.stringTemplateParser(app.getLz('settings.option.visual.theme.github.install.confirm'), {
repo: repo.full_name
});
bootbox.confirm(msg, ()=>{
bootbox.confirm(msg, (res)=>{
if(res) {
ipcRenderer.once("theme-installed", (event, arg) => {
if (arg.success) {
self.themes = ipcRenderer.sendSync("get-themes")
@ -59,6 +60,7 @@
}
});
ipcRenderer.invoke("get-github-theme", repo.html_url)
}
})
},
installThemeURL() {