mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-25 19:01:38 +01:00
Migrate to Vite+ unified toolchain (#428)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// Listen for settings changes, the re-compute theme
|
||||
import { listen } from '@tauri-apps/api/event';
|
||||
import type { ModelPayload, Settings } from '@yaakapp-internal/models';
|
||||
import { fireAndForget } from './lib/fireAndForget';
|
||||
import { getSettings } from './lib/settings';
|
||||
|
||||
function setFonts(settings: Settings) {
|
||||
@@ -17,4 +18,4 @@ listen<ModelPayload>('model_write', async (event) => {
|
||||
setFonts(event.payload.model);
|
||||
}).catch(console.error);
|
||||
|
||||
getSettings().then((settings) => setFonts(settings));
|
||||
fireAndForget(getSettings().then((settings) => setFonts(settings)));
|
||||
|
||||
Reference in New Issue
Block a user