Skip to content

Commit

Permalink
Fix update checker
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed Sep 6, 2024
1 parent 7d78e5c commit 9fdf7d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/stores/SettingsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function checkForUpdate(options: UpdateCheckOptions = {}): Promise<void> {
/**
* Init all settings
*/
async function check(): Promise<void> {
async function checkAllSettings(): Promise<void> {
await Promise.allSettled([
checkTheme(),
checkSleepBlocker(),
Expand Down Expand Up @@ -170,7 +170,8 @@ const SettingsAPI = {
setTheme,
applyThemeToUI,
setTracksDensity,
check,
checkAllSettings,
checkForUpdate,
toggleSleepBlocker,
setDefaultView,
toggleAutoUpdateChecker,
Expand Down
2 changes: 1 addition & 1 deletion src/views/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { LoaderData } from './router';

export default function ViewRoot() {
useEffect(() => {
SettingsAPI.check()
SettingsAPI.checkAllSettings()
// Show the app once everything is loaded
.then(() => getCurrentWindow())
.then((window) => window.show());
Expand Down

0 comments on commit 9fdf7d0

Please sign in to comment.