Skip to content

Commit

Permalink
What's new for new users is not a great experience
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Oct 1, 2024
1 parent 398caea commit 0518305
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3829,11 +3829,16 @@ ApplicationWindow {
Changelog {
id: changelogPopup
objectName: 'changelogPopup'

parent: Overlay.overlay

property var expireDate: new Date(2038, 1, 19)
visible: settings && settings.value("/QField/ChangelogVersion", "") !== appVersion && expireDate > new Date()
Component.onCompleted: {
const changelogVersion = settings.value("/QField/ChangelogVersion", "");
if (changelogVersion === "") {
settings.setValue("/QField/ChangelogVersion", appVersion);
} else if (changelogVersion !== appVersion) {
open();
}
}
}

Toast {
Expand Down

1 comment on commit 0518305

@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.