Compare commits
No commits in common. "84c13331d2141d7e50744575dd1ced136f40d712" and "b673b74eee248db8bc2b476a08ad9943845a9692" have entirely different histories.
84c13331d2
...
b673b74eee
2
app.js
2
app.js
@ -318,7 +318,7 @@ async function doUpdateCheck(window) {
|
|||||||
|
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
const win = windowManager.createWindow(700, 460);
|
const win = windowManager.createWindow(700, 420);
|
||||||
|
|
||||||
win.loadFile('./html/index.html');
|
win.loadFile('./html/index.html');
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.folder-section {
|
.folder-section {
|
||||||
margin-top: 50px;
|
margin-top: 13px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -16,6 +16,7 @@ window.addEventListener('DOMContentLoaded', () => {
|
|||||||
titlebar.updateTitle(`${appInfo.appName} ${appInfo.appVersion}`);
|
titlebar.updateTitle(`${appInfo.appName} ${appInfo.appVersion}`);
|
||||||
|
|
||||||
const $ = require('jquery');
|
const $ = require('jquery');
|
||||||
|
const axios = require('axios').default;
|
||||||
const Swal = require('sweetalert2');
|
const Swal = require('sweetalert2');
|
||||||
|
|
||||||
$('#account-action').on('click', () => {
|
$('#account-action').on('click', () => {
|
||||||
@ -68,28 +69,6 @@ window.addEventListener('DOMContentLoaded', () => {
|
|||||||
$('#launch-btn').html('Updating...');
|
$('#launch-btn').html('Updating...');
|
||||||
ipcRenderer.send("do-update");
|
ipcRenderer.send("do-update");
|
||||||
break;
|
break;
|
||||||
case "missing-folder":
|
|
||||||
const responseData = await ipcRenderer.invoke('set-osu-dir');
|
|
||||||
if (!responseData)
|
|
||||||
return;
|
|
||||||
if (responseData.validOsuDir) {
|
|
||||||
Swal.fire({
|
|
||||||
title: 'Success!',
|
|
||||||
text: 'osu! folder set.',
|
|
||||||
icon: 'success',
|
|
||||||
confirmButtonText: 'Cool'
|
|
||||||
})
|
|
||||||
$('#currentOsuPath').text(responseData.folderPath);
|
|
||||||
ipcRenderer.send("do-update-check");
|
|
||||||
} else {
|
|
||||||
Swal.fire({
|
|
||||||
title: 'Uh oh!',
|
|
||||||
text: 'The selected folder is not a osu! directory.',
|
|
||||||
icon: 'error',
|
|
||||||
confirmButtonText: 'Oops.. my bad!'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -178,7 +157,7 @@ window.addEventListener('DOMContentLoaded', () => {
|
|||||||
currentState = status.type;
|
currentState = status.type;
|
||||||
break;
|
break;
|
||||||
case "missing-folder":
|
case "missing-folder":
|
||||||
$("#launch-btn").attr('disabled', false);
|
$("#launch-btn").attr('disabled', true);
|
||||||
$('#launch-btn').html('set your osu! folder');
|
$('#launch-btn').html('set your osu! folder');
|
||||||
currentState = status.type;
|
currentState = status.type;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user