ngraham added a comment.
How about refactoring this "does SDDM user exist?" check into a function so we don't have to write virtually the same code three times? REPOSITORY R123 SDDM Configuration Panel (KCM) REVISION DETAIL https://phabricator.kde.org/D23378 To: filipf, #plasma, davidedmundson, ngraham, #vdg Cc: davidedmundson, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart