mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
Removed old resetting to previous values
This is due to a change in `_js` which lead to the instant updates breaking :( Need to reinvestigate how to actually fix this. For now the broken feature got replaced with a working, but sloooow solution (updates one by one when resetting)
This commit is contained in:
+2
-2
@@ -1300,8 +1300,8 @@ def create_ui():
|
||||
res = comp(label=info.label, value=fun(), elem_id=elem_id, **(args or {}))
|
||||
|
||||
if not is_quicksettings:
|
||||
res.change(fn=None, inputs=res, _js=f'(val) => onSettingComponentChanged("{key}", val)')
|
||||
dirty_indicator.click(fn=None, outputs=res, _js=f'() => onModificationIndicatorClicked("{key}")')
|
||||
res.change(fn=None, inputs=res, _js=f'(val) => markIfModified("{key}", val)')
|
||||
dirty_indicator.click(fn=lambda: getattr(opts, key), outputs=res, show_progress=False)
|
||||
dirtyable_setting.__exit__()
|
||||
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user