diff options
Diffstat (limited to 'qml/SettingsPage.qml')
-rw-r--r-- | qml/SettingsPage.qml | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/qml/SettingsPage.qml b/qml/SettingsPage.qml index 57e35fa..b16225f 100644 --- a/qml/SettingsPage.qml +++ b/qml/SettingsPage.qml @@ -6,7 +6,7 @@ import org.kde.kirigami 2.12 as Kirigami import DeltaChat 1.0 Kirigami.ScrollablePage { - id: settingsPageRoot + id: root title: "Settings" @@ -16,65 +16,65 @@ Kirigami.ScrollablePage { Image { Kirigami.FormData.label: "Avatar: " - source: "file:" + settingsPageRoot.context.getConfig("selfavatar") + source: "file:" + root.context.getConfig("selfavatar") } TextField { id: displayNameField Kirigami.FormData.label: "Name: " - text: settingsPageRoot.context.getConfig("displayname") - onEditingFinished: settingsPageRoot.context.setConfig("displayname", text) + text: root.context.getConfig("displayname") + onEditingFinished: root.context.setConfig("displayname", text) } TextArea { Kirigami.FormData.label: "Signature: " - text: settingsPageRoot.context.getConfig("selfstatus") - onEditingFinished: settingsPageRoot.context.setConfig("selfstatus", text) + text: root.context.getConfig("selfstatus") + onEditingFinished: root.context.setConfig("selfstatus", text) selectByMouse: true } Switch { text: "Prefer end-to-end encryption" - checked: settingsPageRoot.context.getConfig("e2ee_enabled") == "1" - onToggled: settingsPageRoot.context.setConfig("e2ee_enabled", checked ? "1" : "0") + checked: root.context.getConfig("e2ee_enabled") == "1" + onToggled: root.context.setConfig("e2ee_enabled", checked ? "1" : "0") } Switch { text: "Read receipts" - checked: settingsPageRoot.context.getConfig("mdns_enabled") == "1" - onToggled: settingsPageRoot.context.setConfig("mdns_enabled", checked ? "1" : "0") + checked: root.context.getConfig("mdns_enabled") == "1" + onToggled: root.context.setConfig("mdns_enabled", checked ? "1" : "0") } Switch { text: "Watch Inbox" - checked: settingsPageRoot.context.getConfig("inbox_watch") == "1" - onToggled: settingsPageRoot.context.setConfig("inbox_watch", checked ? "1" : "0") + checked: root.context.getConfig("inbox_watch") == "1" + onToggled: root.context.setConfig("inbox_watch", checked ? "1" : "0") } Switch { text: "Watch Sent" - checked: settingsPageRoot.context.getConfig("sentbox_watch") == "1" - onToggled: settingsPageRoot.context.setConfig("sentbox_watch", checked ? "1" : "0") + checked: root.context.getConfig("sentbox_watch") == "1" + onToggled: root.context.setConfig("sentbox_watch", checked ? "1" : "0") } Switch { text: "Watch DeltaChat" - checked: settingsPageRoot.context.getConfig("mvbox_watch") == "1" - onToggled: settingsPageRoot.context.setConfig("mvbox_watch", checked ? "1" : "0") + checked: root.context.getConfig("mvbox_watch") == "1" + onToggled: root.context.setConfig("mvbox_watch", checked ? "1" : "0") } Switch { text: "Send copy to self" - checked: settingsPageRoot.context.getConfig("bcc_self") == "1" - onToggled: settingsPageRoot.context.setConfig("bcc_self", checked ? "1" : "0") + checked: root.context.getConfig("bcc_self") == "1" + onToggled: root.context.setConfig("bcc_self", checked ? "1" : "0") } Switch { text: "Move to DeltaChat" - checked: settingsPageRoot.context.getConfig("mvbox_move") == "1" - onToggled: settingsPageRoot.context.setConfig("mvbox_move", checked ? "1" : "0") + checked: root.context.getConfig("mvbox_move") == "1" + onToggled: root.context.setConfig("mvbox_move", checked ? "1" : "0") } ComboBox { @@ -87,8 +87,8 @@ Kirigami.ScrollablePage { ListElement { text: "All" } } textRole: "text" - currentIndex: settingsPageRoot.context.getConfig("show_emails") - onActivated: settingsPageRoot.context.setConfig("show_emails", currentIndex) + currentIndex: root.context.getConfig("show_emails") + onActivated: root.context.setConfig("show_emails", currentIndex) } } } |