Allow addition to monitored options

This commit is contained in:
awsr
2026-01-27 13:55:16 -08:00
parent 3ca4ebf2d0
commit 93fc65b2ea
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -11,6 +11,10 @@ const monitoredOpts = [
{ sd_backend: () => gradioApp().getElementById('refresh_sd_model_checkpoint')?.click() },
];
function monitorOption(option, callback) {
monitoredOpts.push({ [option]: callback });
}
const AppyOpts = [
{ compact_view: (val, old) => toggleCompact(val, old) },
{ gradio_theme: (val, old) => setTheme(val, old) },