Skip to content

Commit

Permalink
if latest version is newer than current version show update dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Iktwo committed Sep 24, 2014
1 parent 9937496 commit a1f819f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ ApplicationWindow {

UpdateChecker {
id: updateChecker
onLatestVersionChanged: console.log("LATEST VERSION:", latestVersion)
onLatestVersionChanged: {
if (latestVersion > version && updateChecker.skippedVersion !== latestVersion)
updateDialog.open()
}
}

UpdateDialog {
Expand Down

0 comments on commit a1f819f

Please sign in to comment.