feat: centralize all screen related callbacks in useScreen

This commit is contained in:
2025-12-29 21:01:19 +01:00
parent 4960bef2fc
commit d77d595370
42 changed files with 184 additions and 128 deletions

View File

@@ -1,6 +1,7 @@
<script setup lang="ts">
const store = useSettingsStore();
const { onRender } = useScreen();
const store = useSettingsStore();
const { assets } = useAssets();
const renderNotification = (
@@ -76,7 +77,7 @@ const submenuNotification = computed(() => {
};
});
useRender((ctx) => {
onRender((ctx) => {
let count = 1;
if (menuNotification.value) count++;
if (submenuNotification.value) count++;