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.horizontalCenter: parent.horizontalCenter
anchors.top: noContacts.bottom anchors.top: noContacts.bottom
anchors.topMargin: Style.current.xlPadding anchors.topMargin: Style.current.xlPadding
onClicked: { onClicked: inviteFriendsPopup.open()
inviteFriendsPopup.open()
}
} }
InviteFriendsPopup { InviteFriendsPopup {
id: inviteFriendsPopup id: inviteFriendsPopup

View File

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

View File

@ -184,7 +184,7 @@ QtObject {
} }
function isHexColor(c) { 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) { function isSpace(c) {