mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-31 14:33:18 +02: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 } from '@yaakapp-internal/models';
|
||||
import { fireAndForget } from './lib/fireAndForget';
|
||||
import { getSettings } from './lib/settings';
|
||||
|
||||
function setFontSizeOnDocument(fontSize: number) {
|
||||
@@ -13,4 +14,4 @@ listen<ModelPayload>('model_write', async (event) => {
|
||||
setFontSizeOnDocument(event.payload.model.interfaceFontSize);
|
||||
}).catch(console.error);
|
||||
|
||||
getSettings().then((settings) => setFontSizeOnDocument(settings.interfaceFontSize));
|
||||
fireAndForget(getSettings().then((settings) => setFontSizeOnDocument(settings.interfaceFontSize)));
|
||||
|
||||
Reference in New Issue
Block a user