summaryrefslogtreecommitdiff
path: root/settings
diff options
context:
space:
mode:
Diffstat (limited to 'settings')
-rw-r--r--settings/accounts/ui/MastodonSettingsDisplay.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/settings/accounts/ui/MastodonSettingsDisplay.qml b/settings/accounts/ui/MastodonSettingsDisplay.qml
index fe8ba04..35d657b 100644
--- a/settings/accounts/ui/MastodonSettingsDisplay.qml
+++ b/settings/accounts/ui/MastodonSettingsDisplay.qml
@@ -13,6 +13,7 @@ StandardAccountSettingsDisplay {
id: root
settingsModified: true
+ property bool postsServiceEnabled: false
function refreshDescriptionEditor() {
var description = root.account.configurationValues("")["description"]
@@ -124,6 +125,9 @@ StandardAccountSettingsDisplay {
: "")
visible: text.length > 0
onCheckedChanged: {
+ if (model.serviceName === "mastodon-microblog") {
+ root.postsServiceEnabled = checked
+ }
if (checked) {
root.account.enableWithService(model.serviceName)
} else {
@@ -140,6 +144,7 @@ StandardAccountSettingsDisplay {
text: qsTrId("settings-accounts-mastodon-la-auto_sync_feed")
//% "Fetch new posts periodically when browsing Events Mastodon feed."
description: qsTrId("settings-accounts-mastodon-la-auto_sync_feed_description")
+ enabled: root.postsServiceEnabled
onCheckedChanged: {
autoSyncConf.value = checked