Commit fb1a1424 authored by Dan Leinir Turthra Jensen's avatar Dan Leinir Turthra Jensen 🌈
Browse files

Don't allow setting the account display name to what it is currently

parent 53c1b4a9
......@@ -77,7 +77,7 @@ SimpleKCM {
actions: [
Kirigami.Action {
enabled: newAccountDisplayName.text.length > 0
enabled: newAccountDisplayName.text.length > 0 && newAccountDisplayName.text !== servicesList.model.accountDisplayName
text: i18nc("Text of a button which will cause the human-readable name of an account to be set to a text specified by the user", "Set Account Name")
onTriggered: {
var job = accountDisplayNameJob.createObject(component, { "accountId": servicesList.model.accountId, "displayName": newAccountDisplayName.text })
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment