Fix changelog loading issue and update version check

This commit is contained in:
shidorien
2024-01-05 17:29:48 +01:00
parent 61889c0b5b
commit 5c35eae53a
2 changed files with 3 additions and 2 deletions
@@ -156,12 +156,13 @@ export function SettingsPage() {
})
.finally(() => { isChangelogResolved = true; });
setTimeout(() => {
const timeoutId = setTimeout(() => {
setChanglogsLoading(() => !isChangelogResolved);
}, 100);
await changelogPromise;
setChanglogsLoading(() => false);
clearTimeout(timeoutId);
};
const setDefaultInstallationFolder = () => {
+1 -1
View File
@@ -46,7 +46,7 @@ export default function App() {
const checkIsUpdated = async () => {
const appVersion = await lastValueFrom(autoUpdater.getAppVersion());
const lastAppVersion = autoUpdater.getLastAppVersion();
if (!lastAppVersion || lte(appVersion, lastAppVersion)) {
return;
}