mirror of
https://github.com/vladmandic/automatic
synced 2026-08-31 09:31:00 +02:00
Allow addition to monitored options
This commit is contained in:
@@ -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) },
|
||||
|
||||
Reference in New Issue
Block a user