Skip to content

Commit

Permalink
On desktop OSes (linux, windows, macos), register QFieldCloud account…
Browse files Browse the repository at this point in the history
…s in the OS browser
  • Loading branch information
nirvn committed Jun 16, 2024
1 parent cd44fe1 commit d25bea7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/qml/QFieldCloudLogin.qml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Item {
Text {
id: cloudRegisterLabel
Layout.fillWidth: true
Layout.topMargin:6
Layout.topMargin: 6
text: qsTr( 'New user?') + ' <a href="https://app.qfield.cloud/accounts/signup/">' + qsTr( 'Register an account' ) + '</a>.'
horizontalAlignment: Text.AlignHCenter
font: Theme.defaultFont
Expand All @@ -196,9 +196,13 @@ Item {
visible: cloudConnection.status === QFieldCloudConnection.Disconnected

onLinkActivated: (link) => {
browserPopup.url = link
browserPopup.fullscreen = true
browserPopup.open()
if (Qt.platform.os === "ios" || Qt.platform.os === "android") {
browserPopup.url = link
browserPopup.fullscreen = true
browserPopup.open()
} else {
Qt.openUrlExternally(link)
}
}
}

Expand Down

0 comments on commit d25bea7

Please sign in to comment.