Skip to content

Commit

Permalink
Add option to check first run or installed new version of I-Nex
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Feb 23, 2014
1 parent bfa858d commit a384ddd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/i-nex/.src/MInit.module
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,26 @@ Public Sub _inits()
Do_not_print = Null
Logs("Execute report-ng.sh", Logger.Info)
Exec ["/bin/bash", "" & User.Home & "/.i-nex/report-ng.sh"] Wait

If Settings["FirstRun/Value"] = "True" Then
If Settings["FirstRun/AppVer"] < Application.Version Then

Desktop.Open("http://i-nex.linux.pl/" & Application.Version & "")
Settings["FirstRun/AppVer"] = Application.Version

Else

Logs("This is not first run of I-Nex", Logger.Info)

Endif


Else

Desktop.Open("http://i-nex.linux.pl")
Settings["FirstRun/Value"] = "True"
Settings["FirstRun/AppVer"] = Application.Version

Endif

End

0 comments on commit a384ddd

Please sign in to comment.