Skip to content

Commit

Permalink
feat: update layout component to conditionally check for updates and …
Browse files Browse the repository at this point in the history
…import SHOW_DECORATION from app_settings
  • Loading branch information
Tsuzat committed Jan 29, 2025
1 parent 9689c33 commit c20360b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
import Sonner from '$lib/components/ui/sonner/sonner.svelte';
import Commandbar from '$lib/components/customs/dialogs/commandbar.svelte';
import { checkUpdate } from '$lib/updater';
import { APPWINDOW, NOTES, SHOW_DECORATION } from '$lib/contants';
import { APPWINDOW, NOTES } from '$lib/contants';
import { RECENT_NOTES } from '$lib/recents';
import WindowButtons from '$lib/components/customs/window-buttons.svelte';
import { CHECK_UPDATE_ON_START, SHOW_DECORATION } from '$lib/app_settings';
let { children } = $props();
onMount(async () => {
Expand All @@ -25,7 +26,7 @@
await APPWINDOW.show();
// check for updates
await checkUpdate();
if ($CHECK_UPDATE_ON_START) await checkUpdate();
});
</script>

Expand Down

0 comments on commit c20360b

Please sign in to comment.