Turn bookmarks/aliases/at_index into Sections
This commit is contained in:
@@ -275,22 +275,22 @@ HListView {
|
||||
}
|
||||
|
||||
Repeater {
|
||||
model: Object.keys(window.settings.Keys.Accounts.at_index)
|
||||
model: Object.keys(window.settings.Keys.Accounts.AtIndex)
|
||||
|
||||
Item {
|
||||
HShortcut {
|
||||
sequence: window.settings.Keys.Accounts.at_index[modelData]
|
||||
sequences: window.settings.Keys.Accounts.AtIndex[modelData]
|
||||
onActivated: goToAccountNumber(parseInt(modelData, 10) - 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Repeater {
|
||||
model: Object.keys(window.settings.Keys.Rooms.at_index)
|
||||
model: Object.keys(window.settings.Keys.Rooms.AtIndex)
|
||||
|
||||
Item {
|
||||
HShortcut {
|
||||
sequence: window.settings.Keys.Rooms.at_index[modelData]
|
||||
sequences: window.settings.Keys.Rooms.AtIndex[modelData]
|
||||
onActivated: showAccountRoomAtIndex(parseInt(modelData,10) - 1)
|
||||
}
|
||||
}
|
||||
|
@@ -34,7 +34,7 @@ HFlickableColumnPage {
|
||||
}
|
||||
|
||||
if (aliasFieldItem.changed) {
|
||||
window.settings.Chat.Composer.aliases[userId] =
|
||||
window.settings.Chat.Composer.Aliases[userId] =
|
||||
aliasFieldItem.text
|
||||
|
||||
window.saveSettings()
|
||||
@@ -251,7 +251,7 @@ HFlickableColumnPage {
|
||||
HLabeledItem {
|
||||
id: aliasField
|
||||
|
||||
readonly property var aliases: window.settings.Chat.Composer.aliases
|
||||
readonly property var aliases: window.settings.Chat.Composer.Aliases
|
||||
readonly property string currentAlias: aliases[userId] || ""
|
||||
|
||||
readonly property bool hasWhiteSpace: /\s/.test(item.text)
|
||||
|
@@ -21,7 +21,7 @@ HTextArea {
|
||||
|
||||
readonly property var usableAliases: {
|
||||
const obj = {}
|
||||
const aliases = window.settings.Chat.Composer.aliases
|
||||
const aliases = window.settings.Chat.Composer.Aliases
|
||||
|
||||
// Get accounts that are members of this room with permission to talk
|
||||
for (const [id, alias] of Object.entries(aliases)) {
|
||||
|
Reference in New Issue
Block a user