We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89722fb commit 467d8b9Copy full SHA for 467d8b9
modules/ui.py
@@ -1446,17 +1446,19 @@ def run_settings(*args):
1446
continue
1447
1448
oldval = opts.data.get(key, None)
1449
-
1450
- setattr(opts, key, value)
1451
+ try:
+ setattr(opts, key, value)
+ except RuntimeError:
1452
+ continue
1453
if oldval != value:
1454
if opts.data_labels[key].onchange is not None:
1455
opts.data_labels[key].onchange()
1456
1457
changed += 1
1458
- opts.save(shared.config_filename)
1459
+ opts.save(shared.config_filename)
1460
1461
+ return opts.dumpjson(), f'{changed} settings changed without save.'
1462
return opts.dumpjson(), f'{changed} settings changed.'
1463
1464
def run_settings_single(value, key):
0 commit comments