Better plugin reloading and theme parsing

This commit is contained in:
Gregory Schier
2025-07-03 12:25:22 -07:00
parent 36bbb87a5e
commit 2a6f139d36
5 changed files with 17 additions and 16 deletions

View File

@@ -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);