protected override async void OnViewLoaded() { Global.VMMain = this; Global.Settings = Settings.Read(); //Show search ShowPage("search"); //Settings change Settings.Change(Global.Settings); //Show about VMAbout.MainVM = this; if (Global.Settings.Version != VMAbout.Version) { Global.Settings.Version = VMAbout.Version; Global.Settings.Save(); ShowPage("about"); } //Update new version VMAbout.LastVersion = await GithubHelper.getLastReleaseVersionAsync(Global.NAME_GITHUB_AUTHOR, Global.NAME_GITHUB_PROJECT); if (VMAbout.LastVersion != null && VMAbout.LastVersion != VMAbout.Version) { VMAbout.EnableUpdate = Visibility.Visible; ShowPage("about"); } }
protected override async void OnViewLoaded() { Global.VMMain = this; Global.Settings = Settings.Read(); //Show search ShowPage("search"); //Settings change Settings.Change(Global.Settings); //Show about if (Global.Settings.Version != VMAbout.Version) { Global.Settings.Version = VMAbout.Version; Global.Settings.Save(); ShowPage("about"); } //Update new version string version = await GithubHelper.getLastReleaseVersionAsync(Global.NAME_GITHUB_AUTHOR, Global.NAME_GITHUB_PROJECT); //if(version != null && version != VMAbout.Version) //{ // ShowPage("about"); //} }