Apply suggestions from code review

Co-authored-by: RichΛrd <info@richardramos.me>
This commit is contained in:
Jonathan Rainville 2021-01-06 09:58:44 -05:00 committed by Iuri Matias
parent fe42cd08f8
commit 7f2f3b599d
3 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -35,7 +35,7 @@ Item {
}
StatusSwitch {
checked: appSettings.communitiesEnabled
onCheckedChanged: function(value) {
onCheckedChanged: {
appSettings.communitiesEnabled = this.checked
}
}

View File

@ -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) {