Skip to content

Commit

Permalink
Show updataLog
Browse files Browse the repository at this point in the history
  • Loading branch information
yaronzz committed Sep 2, 2021
1 parent 0ac511a commit d9f1627
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
12 changes: 12 additions & 0 deletions TIDALDL-UI-PRO/Pages/AboutView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>

<hc:Divider Margin="0,1"></hc:Divider>
Expand Down Expand Up @@ -109,6 +110,17 @@
<ProgressBar Value="{Binding Progress.ValueInt}"/>
<TextBlock Text="{Binding DownloadStatusInfo}"></TextBlock>
</StackPanel>

<!--UpdataLog-->
<Border Grid.Row="3" Style="{StaticResource BorderRegion}" MaxHeight="100" Margin="0,10,0,0" Visibility="{Binding ShowVersionDesc}">
<StackPanel>
<TextBlock Text="{Binding LastVersion}" Style="{StaticResource TextBlockSubTitleBold}" HorizontalAlignment="Left"/>
<TextBlock Text="{Binding LastVersionDesc}"/>
</StackPanel>
</Border>



</Grid>
</Grid>
</Border>
Expand Down
2 changes: 2 additions & 0 deletions TIDALDL-UI-PRO/Pages/AboutViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ public class AboutViewModel : ModelBase
public string Type { get; set; } = "(BETA)";
public string Version { get; set; } = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
public string LastVersion { get; set; }
public string LastVersionDesc { get; set; }
public Visibility ShowDonate { get; set; } = Visibility.Collapsed;
public Visibility ShowProgress { get; set; } = Visibility.Collapsed;
public Visibility ShowVersionDesc { get; set; } = Visibility.Collapsed;
public Visibility EnableUpdate { get; set; } = Visibility.Collapsed;
public ProgressHelper Progress { get; set; } = new ProgressHelper(false);
public string DownloadStatusInfo { get; set; }
Expand Down
8 changes: 6 additions & 2 deletions TIDALDL-UI-PRO/Pages/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ protected override async void OnViewLoaded()
}

//Update new version
VMAbout.LastVersion = await GithubHelper.getLastReleaseVersionAsync(Global.NAME_GITHUB_AUTHOR, Global.NAME_GITHUB_PROJECT);
if (VMAbout.LastVersion != null && VMAbout.LastVersion != VMAbout.Version)
GithubHelper.VER Ver = await GithubHelper.getLastReleaseVersionAsync(Global.NAME_GITHUB_AUTHOR, Global.NAME_GITHUB_PROJECT);
VMAbout.LastVersion = Ver.version;
VMAbout.LastVersionDesc = Ver.desc;
if (VMAbout.LastVersion.IsNotBlank() && VMAbout.LastVersion != VMAbout.Version)
{
if (VMAbout.LastVersionDesc.IsNotBlank())
VMAbout.ShowVersionDesc = Visibility.Visible;
VMAbout.EnableUpdate = Visibility.Visible;
ShowPage("about");
}
Expand Down
4 changes: 2 additions & 2 deletions TIDALDL-UI-PRO/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.1.6")]
[assembly: AssemblyFileVersion("1.2.1.6")]
[assembly: AssemblyVersion("1.2.1.7")]
[assembly: AssemblyFileVersion("1.2.1.7")]
3 changes: 2 additions & 1 deletion TIDALDL-UI-PRO/Properties/ControlResources.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<aigs:EmptyToVisibilityConverter x:Key="ConverterEmptyToVisibility" />
<aigs:BoolToVisibilityConverter x:Key="ConverterBoolToVisibility" />
<aigs:UnBoolToVisibilityConverter x:Key="ConverterUnBoolToVisibility" />

<aigs:StringNotEmptyToBoolConverter x:Key="ConverterStringNotEmptyToVisibility" />

<Style x:Key="MyListBoxItemTransparent" BasedOn="{StaticResource ListBoxItemBaseStyle}" TargetType="ListBoxItem">
<Setter Property="Visibility" Value="{Binding IsVisible,Converter={StaticResource Boolean2VisibilityConverter}}"/>
<Setter Property="hc:BorderElement.CornerRadius" Value="4"/>
Expand Down
1 change: 1 addition & 0 deletions TIDALDL-UI-PRO/UPDATE_LOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@


#### v1.2.1.7
- [x] Fix bug of "Index out of range" [#126](https://github.com/yaronzz/Tidal-Media-Downloader-PRO/issues/126)
- [x] Fix bug of "Illegal characters in path" [#132](https://github.com/yaronzz/Tidal-Media-Downloader-PRO/issues/132)
- [x] Fix bug of "Russian lyrics are added as Chinese" [#130](https://github.com/yaronzz/Tidal-Media-Downloader-PRO/issues/130)
Expand Down

0 comments on commit d9f1627

Please sign in to comment.