mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-19 15:08:23 +01:00
Better plugin reloading and theme parsing
This commit is contained in:
1 parent
36bbb87a5e
commit
2a6f139d36
5 files changed
+17
-16
No files matched your search
+2
-1
@@ -27,7 +27,8 @@ configureTheme().then(
|
||||
|
||||
// Listen for settings changes, the re-compute theme
|
||||
listen<ModelPayload>('upserted_model', async (event) => {
|
||||
if (event.payload.model.model !== 'settings') return;
|
||||
const model = event.payload.model.model;
|
||||
if (model !== 'settings' && model !== 'plugin') return;
|
||||
await configureTheme();
|
||||
}).catch(console.error);
|
||||
|
||||
|
||||
Reference in new issue
Block a user