Apply suggestions from code review
Co-authored-by: RichΛrd <info@richardramos.me>
This commit is contained in:
parent
fe42cd08f8
commit
7f2f3b599d
|
@ -23,9 +23,7 @@ Rectangle {
|
|||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: noContacts.bottom
|
||||
anchors.topMargin: Style.current.xlPadding
|
||||
onClicked: {
|
||||
inviteFriendsPopup.open()
|
||||
}
|
||||
onClicked: inviteFriendsPopup.open()
|
||||
}
|
||||
InviteFriendsPopup {
|
||||
id: inviteFriendsPopup
|
||||
|
|
|
@ -35,7 +35,7 @@ Item {
|
|||
}
|
||||
StatusSwitch {
|
||||
checked: appSettings.communitiesEnabled
|
||||
onCheckedChanged: function(value) {
|
||||
onCheckedChanged: {
|
||||
appSettings.communitiesEnabled = this.checked
|
||||
}
|
||||
}
|
||||
|
|
|
@ -184,7 +184,7 @@ QtObject {
|
|||
}
|
||||
|
||||
function isHexColor(c) {
|
||||
return (/^#([0-9A-F]{6}|[0-9A-F]{3})$/i.test(c))
|
||||
return (/^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})$/i.test(c))
|
||||
}
|
||||
|
||||
function isSpace(c) {
|
||||
|
|
Loading…
Reference in New Issue