示例#1
0
        private async Task ShowWhatsNew()
        {
            var ver = Version.Parse(SettingsStorage.GetObjectLocal("_version", new Version(0, 0, 0, 0).ToString()));

            if (!SettingsStorage.GetObjectLocal("WasUpdated", false) && ver == new Version(0, 0, 0, 0))
            {
                return;
            }
            SettingsStorage.DeleteObjectLocal("WasUpdated");
            SettingsStorage.DeleteObjectLocal("_version");

            if (Platform.Version.Revision != 0)
            {
                return;
            }

            var log = await Updates.GetChangelog(Platform.Version);

            if (string.IsNullOrEmpty(log.Name) || string.IsNullOrEmpty(log.Content))
            {
                return;
            }

            var dialog = new MarkdownDialog(lang.GetString("HostTab/ChangelogTitle"), log.Content);
            await dialog.ShowAsync();
        }