summaryrefslogtreecommitdiff
path: root/settings
diff options
context:
space:
mode:
Diffstat (limited to 'settings')
-rw-r--r--settings/accounts-translations-plugin/accounts-translations-plugin.pro4
-rw-r--r--settings/accounts-translations-plugin/plugin.cpp4
-rw-r--r--settings/accounts/accounts.pro4
-rw-r--r--settings/accounts/providers/mastodon.provider3
-rw-r--r--settings/accounts/services/mastodon-microblog.service3
-rw-r--r--settings/accounts/services/mastodon-notifications.service3
-rw-r--r--settings/accounts/services/mastodon-sharing.service3
-rw-r--r--settings/accounts/ui/MastodonSettingsDisplay.qml10
-rw-r--r--settings/accounts/ui/mastodon-settings.qml4
-rw-r--r--settings/accounts/ui/mastodon-update.qml4
-rw-r--r--settings/accounts/ui/mastodon.qml4
-rw-r--r--settings/settings.pro4
12 files changed, 41 insertions, 9 deletions
diff --git a/settings/accounts-translations-plugin/accounts-translations-plugin.pro b/settings/accounts-translations-plugin/accounts-translations-plugin.pro
index a405dbc..8a87592 100644
--- a/settings/accounts-translations-plugin/accounts-translations-plugin.pro
+++ b/settings/accounts-translations-plugin/accounts-translations-plugin.pro
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
TEMPLATE = lib
TARGET = mastodonaccountstranslationsplugin
TARGET = $$qtLibraryTarget($$TARGET)
diff --git a/settings/accounts-translations-plugin/plugin.cpp b/settings/accounts-translations-plugin/plugin.cpp
index f463a72..4a1c651 100644
--- a/settings/accounts-translations-plugin/plugin.cpp
+++ b/settings/accounts-translations-plugin/plugin.cpp
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2013-2026 Jolla Ltd.
+ * SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
*/
#include <QCoreApplication>
diff --git a/settings/accounts/accounts.pro b/settings/accounts/accounts.pro
index 190ee17..37982a3 100644
--- a/settings/accounts/accounts.pro
+++ b/settings/accounts/accounts.pro
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
TEMPLATE = aux
TS_FILE = $$OUT_PWD/settings-accounts-mastodon.ts
diff --git a/settings/accounts/providers/mastodon.provider b/settings/accounts/providers/mastodon.provider
index c02de41..422c231 100644
--- a/settings/accounts/providers/mastodon.provider
+++ b/settings/accounts/providers/mastodon.provider
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright (C) 2013-2026 Jolla Ltd. -->
+<!-- SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd. -->
+<!-- SPDX-License-Identifier: BSD-3-Clause -->
<!DOCTYPE provider>
<provider version="1.0" id="mastodon">
<translations>/usr/share/translations/settings-accounts-mastodon</translations>
diff --git a/settings/accounts/services/mastodon-microblog.service b/settings/accounts/services/mastodon-microblog.service
index 6151577..527f70f 100644
--- a/settings/accounts/services/mastodon-microblog.service
+++ b/settings/accounts/services/mastodon-microblog.service
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<!-- Copyright (C) 2013-2026 Jolla Ltd. -->
+<!-- SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd. -->
+<!-- SPDX-License-Identifier: BSD-3-Clause -->
<service id="mastodon-microblog">
<type>microblogging</type>
<translations>/usr/share/translations/settings-accounts-mastodon</translations>
diff --git a/settings/accounts/services/mastodon-notifications.service b/settings/accounts/services/mastodon-notifications.service
index 0c41e29..f5471c9 100644
--- a/settings/accounts/services/mastodon-notifications.service
+++ b/settings/accounts/services/mastodon-notifications.service
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<!-- Copyright (C) 2013-2026 Jolla Ltd. -->
+<!-- SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd. -->
+<!-- SPDX-License-Identifier: BSD-3-Clause -->
<service id="mastodon-notifications">
<type>microblogging</type>
<translations>/usr/share/translations/settings-accounts-mastodon</translations>
diff --git a/settings/accounts/services/mastodon-sharing.service b/settings/accounts/services/mastodon-sharing.service
index 4048b56..fdf342a 100644
--- a/settings/accounts/services/mastodon-sharing.service
+++ b/settings/accounts/services/mastodon-sharing.service
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<!-- Copyright (C) 2013-2026 Jolla Ltd. -->
+<!-- SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd. -->
+<!-- SPDX-License-Identifier: BSD-3-Clause -->
<service id="mastodon-sharing">
<type>sharing</type>
<translations>/usr/share/translations/settings-accounts-mastodon</translations>
diff --git a/settings/accounts/ui/MastodonSettingsDisplay.qml b/settings/accounts/ui/MastodonSettingsDisplay.qml
index c03221a..13ac06c 100644
--- a/settings/accounts/ui/MastodonSettingsDisplay.qml
+++ b/settings/accounts/ui/MastodonSettingsDisplay.qml
@@ -1,17 +1,21 @@
/*
- * Copyright (C) 2013-2026 Jolla Ltd.
+ * SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
*/
import QtQuick 2.0
import Sailfish.Silica 1.0
import Sailfish.Accounts 1.0
import com.jolla.settings.accounts 1.0
+import com.jolla.settings.accounts.mastodon 1.0
import org.nemomobile.configuration 1.0
StandardAccountSettingsDisplay {
id: root
settingsModified: true
+ property bool postsServiceEnabled: false
function refreshDescriptionEditor() {
var description = root.account.configurationValues("")["description"]
@@ -123,6 +127,9 @@ StandardAccountSettingsDisplay {
: "")
visible: text.length > 0
onCheckedChanged: {
+ if (model.serviceName === "mastodon-microblog") {
+ root.postsServiceEnabled = checked
+ }
if (checked) {
root.account.enableWithService(model.serviceName)
} else {
@@ -139,6 +146,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
diff --git a/settings/accounts/ui/mastodon-settings.qml b/settings/accounts/ui/mastodon-settings.qml
index c66cbb7..0538e44 100644
--- a/settings/accounts/ui/mastodon-settings.qml
+++ b/settings/accounts/ui/mastodon-settings.qml
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2013-2026 Jolla Ltd.
+ * SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
*/
import QtQuick 2.0
diff --git a/settings/accounts/ui/mastodon-update.qml b/settings/accounts/ui/mastodon-update.qml
index 75c043d..2485a83 100644
--- a/settings/accounts/ui/mastodon-update.qml
+++ b/settings/accounts/ui/mastodon-update.qml
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2013-2026 Jolla Ltd.
+ * SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
*/
import QtQuick 2.0
diff --git a/settings/accounts/ui/mastodon.qml b/settings/accounts/ui/mastodon.qml
index a32f336..a4bd512 100644
--- a/settings/accounts/ui/mastodon.qml
+++ b/settings/accounts/ui/mastodon.qml
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2013-2026 Jolla Ltd.
+ * SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
*/
import QtQuick 2.0
diff --git a/settings/settings.pro b/settings/settings.pro
index 84f2a75..4272acf 100644
--- a/settings/settings.pro
+++ b/settings/settings.pro
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
TEMPLATE = subdirs
SUBDIRS += \
accounts \