add notice under Linux
This commit is contained in:
parent
11c3f9f657
commit
573bcd393c
7
app.js
7
app.js
|
@ -74,6 +74,13 @@ const run = () => {
|
|||
await updateConfigVars(mainWindow);
|
||||
await tryLogin(mainWindow);
|
||||
await doUpdateCheck(mainWindow);
|
||||
if (platform === "linux") {
|
||||
console.log("yes");
|
||||
mainWindow.webContents.send('status_update', {
|
||||
type: "info",
|
||||
message: "We detected that you are running the Launcher under Linux. It's currently just compatible with Arch and the osu AUR package!"
|
||||
});
|
||||
}
|
||||
})
|
||||
app.on('activate', function () {
|
||||
if (BrowserWindow.getAllWindows().length === 0) mainWindow = createWindow();
|
||||
|
|
|
@ -168,6 +168,14 @@ window.addEventListener('DOMContentLoaded', () => {
|
|||
});
|
||||
ipcRenderer.send("do-update-check");
|
||||
break;
|
||||
case "info":
|
||||
Swal.fire({
|
||||
title: 'Info!',
|
||||
text: status.message,
|
||||
icon: 'info',
|
||||
confirmButtonText: 'Okay'
|
||||
});
|
||||
break;
|
||||
case "update-complete":
|
||||
Swal.fire({
|
||||
title: 'Yaaay!',
|
||||
|
|
Loading…
Reference in New Issue
Block a user