From ff1c2efe40bf53c146b4a2e3b5046ae8ecb32264 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 10 Feb 2026 22:10:07 +0100 Subject: default server --- settings/accounts/ui/mastodon.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'settings') diff --git a/settings/accounts/ui/mastodon.qml b/settings/accounts/ui/mastodon.qml index 736e82e..758ed9b 100644 --- a/settings/accounts/ui/mastodon.qml +++ b/settings/accounts/ui/mastodon.qml @@ -14,6 +14,7 @@ AccountCreationAgent { property bool _registering readonly property string callbackUri: "http://ipv4.jolla.com/online/status.html" + readonly property string defaultApiHost: "https://mastodon.social" function normalizeApiHost(rawHost) { var host = rawHost ? rawHost.trim() : "" @@ -148,12 +149,12 @@ AccountCreationAgent { property string normalizedHost: root.normalizeApiHost(instanceField.text) - canAccept: !root._registering && normalizedHost.length > 0 + canAccept: !root._registering acceptDestinationAction: PageStackAction.Push acceptDestination: busyComponent onAccepted: { - root._pendingApiHost = normalizedHost + root._pendingApiHost = normalizedHost.length > 0 ? normalizedHost : root.defaultApiHost } DialogHeader { -- cgit v1.2.3