MenuProxyModel: For categories also check whether any children are relevant

Empty categories are hidden but a category with no relevant KCMs is effectively empty, too.


With kwin!8705 (merged) I no longer get a defunct Touchscreens category but the KCMs are hidden and the category, too.

Wonder if we need to check children recursively here?

Didn’t test whether relevant changing at runtime works though

Edited by Kai Uwe Broulik

Merge request reports

Loading