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 15, 2024
1 parent df81406 commit 5d8bc84
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

1 comment on commit 5d8bc84

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.