Fixed general settings of the widgets "Memory Status", "Hard Disk Space Usage", "Network Monitor", "Hard Disk Monitor".
- correctly set checked/unchecked state on load.
jriddell | |
ngraham | |
broulik | |
davidedmundson |
Plasma |
Fixed general settings of the widgets "Memory Status", "Hard Disk Space Usage", "Network Monitor", "Hard Disk Monitor".
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
As far as I can tell, this doesn't work: the listed widgets still have all their configuration pages' checkboxes unchecked after checking some of them, closing the window, and re-opening it. Am I missing something?
Also please change the title to something more descriptive, such as "Show accurate checked state for system monitor configuration pages"
There we go, it works now! Code change looks sane to me.
Please change the title to something more descriptive, such as "Show accurate checked state for system monitor configuration pages". And then we'll wait for a review from a Plasma developer.
The call on line 141 looks superfluous - if there's any change to checked we modify cfg_sources which should trigger the reload.
Can you confirm?
The call on line 141 looks superfluous - if there's any change to checked we modify cfg_sources which should trigger the reload.
QML cannot detect changes within a JS structure, if you push() into an Array or modify members of an Object it doesn't see the change and the automatism for onCfg_...Changed doesn't trigger