ui-settings: Rename write_aliases to writeAliases
This commit is contained in:
parent
df920da2a6
commit
c0b51b574c
|
@ -88,7 +88,7 @@ class UISettings(JSONConfigFile):
|
|||
|
||||
async def default_data(self) -> JsonData:
|
||||
return {
|
||||
"write_aliases": {}
|
||||
"writeAliases": {}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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: ""
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user