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:
|
async def default_data(self) -> JsonData:
|
||||||
return {
|
return {
|
||||||
"write_aliases": {}
|
"writeAliases": {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import "../Base"
|
||||||
HRectangle {
|
HRectangle {
|
||||||
function setFocus() { areaScrollView.forceActiveFocus() }
|
function setFocus() { areaScrollView.forceActiveFocus() }
|
||||||
|
|
||||||
property var aliases: window.settings.write_aliases
|
property var aliases: window.settings.writeAliases
|
||||||
property string writingUserId: chatPage.userId
|
property string writingUserId: chatPage.userId
|
||||||
property string toSend: ""
|
property string toSend: ""
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ HGridLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aliasField.changed) {
|
if (aliasField.changed) {
|
||||||
window.settings.write_aliases[userId] = aliasField.field.text
|
window.settings.writeAliases[userId] = aliasField.field.text
|
||||||
window.settingsChanged()
|
window.settingsChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ HGridLayout {
|
||||||
|
|
||||||
HLabeledTextField {
|
HLabeledTextField {
|
||||||
property string currentAlias:
|
property string currentAlias:
|
||||||
window.settings.write_aliases[userId] || ""
|
window.settings.writeAliases[userId] || ""
|
||||||
|
|
||||||
property bool changed: field.text != currentAlias
|
property bool changed: field.text != currentAlias
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,10 @@ Item {
|
||||||
Connections {
|
Connections {
|
||||||
target: py
|
target: py
|
||||||
onWillLoadAccounts: will => {
|
onWillLoadAccounts: will => {
|
||||||
if (! will) { pageStack.showPage("SignIn") }
|
if (! will) {
|
||||||
|
pageStack.showPage("SignIn")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let page = window.uiState.page
|
let page = window.uiState.page
|
||||||
let props = window.uiState.pageProperties
|
let props = window.uiState.pageProperties
|
||||||
|
|
Loading…
Reference in New Issue
Block a user