The "Clear History" button in the KCM is currently broken, since we are
not watching the actual config file, but a file called "General", i.e.,
the name of the KConfigGroup. Therefore, the QML runner is never
informed that the history was erased in the config file.
Details
Details
Clear History now works as expected on master and v5.18.4.1.
Screencast of current behavior:
Screencast of patched behavior:
Diff Detail
Diff Detail
- Repository
- R120 Plasma Workspace
- Branch
- krunner-fix-watched-config-path (branched from master)
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 26309 Build 26327: arc lint + arc unit
Comment Actions
Nope, different bugs, similar solutions. I can still reproduce the other bug (I never noticed it before btw). I am not sure if this patch fixes any other regressions other than the Clear History button in the KCM.
Comment Actions
Good catch! Seems worthy of landing on the stable branch? What do you think, @broulik?
Comment Actions
Ideally, we'd change the KCM to write the key with KConfig::Notify and then use KConfigWatcher here