Verified Commit 880f3c06 authored by Haelwenn's avatar Haelwenn

Settings.qml: Fix webfinger mention and url

parent 6a46bebc
...@@ -43,11 +43,6 @@ Page { ...@@ -43,11 +43,6 @@ Page {
}) })
} }
/* busy = true;
checked = false;
timer1.start()
}*/
Timer { Timer {
id: timer1 id: timer1
interval: 4700 interval: 4700
...@@ -79,47 +74,47 @@ Page { ...@@ -79,47 +74,47 @@ Page {
Repeater { Repeater {
model: ListModel { model: ListModel {
ListElement { ListElement {
name: "Pleroma Authors" name: qsTr("Pleroma Authors")
desc: qsTr("Pleroma Authors") desc: qsTr("Forking Tooter to Kyclos")
mastodon: "" webfinger: ""
mail: "" url: "https://pleroma.social/"
} }
ListElement { ListElement {
name: "Duško Angirević" name: "Duško Angirević"
desc: qsTr("Tooter developer") desc: qsTr("Tooter developer")
mastodon: "dysko@mastodon.social" webfinger: "dysko@mastodon.social"
mail: "" url: ""
} }
ListElement { ListElement {
name: "Miodrag Nikolić" name: "Miodrag Nikolić"
desc: qsTr("visual identity") desc: qsTr("visual identity")
mastodon: "" webfinger: ""
mail: "micotakis@gmail.com" url: "mailto:micotakis@gmail.com"
} }
ListElement { ListElement {
name: "Quentin PAGÈS / Quenti ♏" name: "Quentin PAGÈS / Quenti ♏"
desc: qsTr("Occitan & French translation") desc: qsTr("Occitan & French translation")
mastodon: "Quenti@framapiaf.org" webfinger: "Quenti@framapiaf.org"
mail: "" url: ""
} }
ListElement { ListElement {
name: "André Koot" name: "André Koot"
desc: qsTr("Dutch translation") desc: qsTr("Dutch translation")
mastodon: "meneer@mastodon.social" webfinger: "meneer@mastodon.social"
mail: "https://twitter.com/meneer" url: "https://twitter.com/meneer"
} }
ListElement { ListElement {
name: "Carlos Gonzalez / Caballlero" name: "Carlos Gonzalez / Caballlero"
desc: qsTr("Español translation") desc: qsTr("Español translation")
mastodon: "" webfinger: ""
mail: "carlosgonz@protonmail.com" url: "mailto:carlosgonz@protonmail.com"
} }
ListElement { ListElement {
name: "Mohamed-Touhami MAHDI" name: "Mohamed-Touhami MAHDI"
desc: qsTr("Added README file") desc: qsTr("Added README file")
mastodon: "dragnucs@touha.me" webfinger: "dragnucs@touha.me"
mail: "touhami@touha.me" url: "mailto:touhami@touha.me"
} }
} }
...@@ -132,22 +127,22 @@ Page { ...@@ -132,22 +127,22 @@ Page {
verticalCenter: parent.verticalCenter verticalCenter: parent.verticalCenter
right: parent.right right: parent.right
} }
icon.source: "image://theme/" + (model.mastodon !== "" ? "icon-m-person" : "icon-m-mail") + "?" + (pressed icon.source: "image://theme/" + (model.webfinger !== "" ? "icon-m-outline-chat" : "icon-m-link") + "?" + (pressed
? Theme.highlightColor ? Theme.highlightColor
: Theme.primaryColor) : Theme.primaryColor)
onClicked: { onClicked: {
if (model.mastodon !== ""){ if (model.webfinger !== ""){
var m = Qt.createQmlObject('import QtQuick 2.0; ListModel { }', Qt.application, 'InternalQmlObject'); var m = Qt.createQmlObject('import QtQuick 2.0; ListModel { }', Qt.application, 'InternalQmlObject');
pageStack.push(Qt.resolvedUrl("Conversation.qml"), { pageStack.push(Qt.resolvedUrl("Conversation.qml"), {
toot_id: 0, toot_id: 0,
title: model.name, title: model.name,
description: '@'+model.mastodon, description: '@'+model.webfinger,
avatar: "", avatar: "",
mdl: m, mdl: m,
type: "reply" type: "reply"
}) })
} else if (model.mail !== ""){ } else {
Qt.openUrlExternally("mailto:"+model.mail); Qt.openUrlExternally(model.url);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment