folder check
This commit is contained in:
parent
14201fb9cd
commit
830b1099ac
|
@ -19,6 +19,10 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||||
const success = await ipcRenderer.invoke('set-osu-dir');
|
const success = await ipcRenderer.invoke('set-osu-dir');
|
||||||
if (success == undefined)
|
if (success == undefined)
|
||||||
return;
|
return;
|
||||||
alert(success);
|
if (success) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
//TODO: Alert User, invalid osu folder selected
|
||||||
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
|
@ -33,9 +33,9 @@ module.exports = {
|
||||||
|
|
||||||
window.webContents.setUserAgent("EZPPLauncher");
|
window.webContents.setUserAgent("EZPPLauncher");
|
||||||
attachTitlebarToWindow(window);
|
attachTitlebarToWindow(window);
|
||||||
window.webContents.openDevTools({
|
/* window.webContents.openDevTools({
|
||||||
mode: "detach"
|
mode: "detach"
|
||||||
});
|
}); */
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user