https://bugs.kde.org/show_bug.cgi?id=379280

            Bug ID: 379280
           Summary: broken config system
           Product: plasmashell
           Version: 5.9.5
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: System Monitor
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: 1.0

- add network monitor
- configure
- deselect all interfaces

at this point the config will re-enable everything again because
ConfigGeneral.qml's `onCfg_sourcesChanged` handler simply sets everything
checked if no sources are configured....

This is suuuuuuuuuuuuuuuuuuuuuuuuper fucked up as obviously this makes no sense
and makes the user freak out. Also it's reaching excessive levels of WTF when
dealing with many interfaces (or cpus etc.) where you may only want one or two
and a misclick or not knowing this bug you deselect everything and then you get
to start from scratch.

>From looking at the overall code I get the impression there is simply no
support for "nothing was configured", making the code assume
length==0==notConfigured==enableEverything. Which has backing in
ConfigGeneral.qml by forcing the UI to check everything if the array is empty.
Supposedly adding a second configuration value `configured` as boolean would do
the trick which is set the first time the config is written, then (!configured
== enableAllSources) and (configured == enableSourcesFromArray).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to