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.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
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue