aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/qtmaildir/ChoiceSetting.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/qtmaildir/ChoiceSetting.qml')
-rw-r--r--desktop/modules/qtmaildir/ChoiceSetting.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/modules/qtmaildir/ChoiceSetting.qml b/desktop/modules/qtmaildir/ChoiceSetting.qml
index 01de9da..0a365d0 100644
--- a/desktop/modules/qtmaildir/ChoiceSetting.qml
+++ b/desktop/modules/qtmaildir/ChoiceSetting.qml
@@ -22,10 +22,12 @@ Column {
// [{value, label}]
property var options: []
property string fallbackLabel: "Default"
+ // The draft it edits; qtmaildir's by default, deck-it passes its own.
+ property var store: Qtm
objectName: section + "/" + key
width: parent ? parent.width : 0
- readonly property string value: Qtm.get(s.section, s.key) ?? ""
+ readonly property string value: s.store.get(s.section, s.key) ?? ""
Item {
width: s.width
@@ -66,7 +68,7 @@ Column {
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
- onClicked: Qtm.set(s.section, s.key, chip.modelData.value === "" ? null : chip.modelData.value)
+ onClicked: s.store.set(s.section, s.key, chip.modelData.value === "" ? null : chip.modelData.value)
}
}
}