chore: add update dialog
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
currentSkin,
|
||||
currentView,
|
||||
firstStartup,
|
||||
launcherVersion,
|
||||
newVersion,
|
||||
osuBuild,
|
||||
osuStream,
|
||||
skins,
|
||||
@@ -34,6 +36,7 @@
|
||||
getVersion,
|
||||
isValidOsuFolder,
|
||||
} from '@/osuUtil';
|
||||
import { git } from '@/api/git';
|
||||
|
||||
let ezppLogo: HTMLImageElement;
|
||||
let spinnerCircle: SVGCircleElement;
|
||||
@@ -139,6 +142,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
currentLoadingInfo.set('Checking for EZPPLauncher updates...');
|
||||
const launcherUpdate = await git.hasUpdate($launcherVersion);
|
||||
if (launcherUpdate) {
|
||||
newVersion.set(launcherUpdate);
|
||||
}
|
||||
|
||||
animate(ezppLogo, {
|
||||
opacity: [1, 0],
|
||||
scale: [1, 1.05],
|
||||
|
Reference in New Issue
Block a user