D26324: [KCM/Component] filemanager: make dolphin the default filemananger
Kevin Ottens
noreply at phabricator.kde.org
Tue Dec 31 13:59:17 GMT 2019
ervin added a comment.
Damn, sorry mate... I meant find_if... dunno why I spluttered any_of... :-/
Indeed if you make a tiny wrapper function for find_if on the "storageId == org.kde.dolphin.desktop" condition, you can use it both in defaults and isDefaults.
In one case it's just about calling setChecked(true) on the found radio is any, in the other case it's about returning true or isChecked() if something was found (and then the check on mDynamicRadioButtons emptiness can disappear, indeed if it's empty dolphin can't be present anyway).
REPOSITORY
R119 Plasma Desktop
BRANCH
arcpatch-D26324
REVISION DETAIL
https://phabricator.kde.org/D26324
To: meven, ervin, #plasma
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191231/93e6e1d7/attachment.html>
More information about the Plasma-devel
mailing list