folder check

This commit is contained in:
HorizonCode 2022-10-16 18:42:04 +02:00
parent 14201fb9cd
commit 830b1099ac
2 changed files with 7 additions and 3 deletions

View File

@ -19,6 +19,10 @@ window.addEventListener('DOMContentLoaded', () => {
const success = await ipcRenderer.invoke('set-osu-dir');
if (success == undefined)
return;
alert(success);
if (success) {
} else {
//TODO: Alert User, invalid osu folder selected
}
});
})

View File

@ -33,9 +33,9 @@ module.exports = {
window.webContents.setUserAgent("EZPPLauncher");
attachTitlebarToWindow(window);
window.webContents.openDevTools({
/* window.webContents.openDevTools({
mode: "detach"
});
}); */
return window;
},