Unverified Commit fb995fab authored by Dusko Angirevic's avatar Dusko Angirevic Committed by GitHub

Merge pull request #42 from tanghus/fix-instance-url

Fix always trying to log in to mastodon.social.
parents 3ec50668 5ae287ac
......@@ -63,9 +63,10 @@ Page {
id: instance
focus: true
label: qsTr("Enter an Mastodon instance URL")
placeholderText: label
text: "https://mastodon.social"
placeholderText: "https://mastodon.social"
width: parent.width
validator: RegExpValidator { regExp: /^(ftp|http|https):\/\/[^ "]+$/ }
EnterKey.enabled: instance.acceptableInput;
EnterKey.iconSource: "image://theme/icon-m-enter-next"
EnterKey.onClicked: {
Logic.api = new Logic.MastodonAPI({ instance: instance.text, api_user_token: "" });
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