ui-settings: Rename write_aliases to writeAliases

This commit is contained in:
miruka 2019-07-21 08:57:17 -04:00
parent df920da2a6
commit c0b51b574c
4 changed files with 8 additions and 5 deletions

View File

@ -88,7 +88,7 @@ class UISettings(JSONConfigFile):
async def default_data(self) -> JsonData:
return {
"write_aliases": {}
"writeAliases": {}
}

View File

@ -8,7 +8,7 @@ import "../Base"
HRectangle {
function setFocus() { areaScrollView.forceActiveFocus() }
property var aliases: window.settings.write_aliases
property var aliases: window.settings.writeAliases
property string writingUserId: chatPage.userId
property string toSend: ""

View File

@ -20,7 +20,7 @@ HGridLayout {
}
if (aliasField.changed) {
window.settings.write_aliases[userId] = aliasField.field.text
window.settings.writeAliases[userId] = aliasField.field.text
window.settingsChanged()
}
@ -138,7 +138,7 @@ HGridLayout {
HLabeledTextField {
property string currentAlias:
window.settings.write_aliases[userId] || ""
window.settings.writeAliases[userId] || ""
property bool changed: field.text != currentAlias

View File

@ -14,7 +14,10 @@ Item {
Connections {
target: py
onWillLoadAccounts: will => {
if (! will) { pageStack.showPage("SignIn") }
if (! will) {
pageStack.showPage("SignIn")
return
}
let page = window.uiState.page
let props = window.uiState.pageProperties