Skip to content

Commit 2368af7

Browse files
committed
refresh installations on Update list refresh, change updates header text to Released
1 parent 7ec0a1f commit 2368af7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

UnityLauncherPro/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@
535535
<CommandBinding Command="ApplicationCommands.Copy" Executed="CopyRowFolderToClipBoard" CanExecute="CanExecute_Copy"/>
536536
</DataGrid.CommandBindings>
537537
<DataGrid.Columns>
538-
<DataGridTextColumn Binding="{Binding ReleaseDate, StringFormat=\{0:dd/MM/yyyy\}}" ClipboardContentBinding="{x:Null}" MinWidth="100" Header="ReleaseDate" IsReadOnly="True"/>
538+
<DataGridTextColumn Binding="{Binding ReleaseDate, StringFormat=\{0:dd/MM/yyyy\}}" ClipboardContentBinding="{x:Null}" MinWidth="100" Header="Released" IsReadOnly="True"/>
539539
<DataGridTextColumn Binding="{Binding Version}" ClipboardContentBinding="{x:Null}" Header="Version" IsReadOnly="True" MinWidth="222">
540540
<DataGridTextColumn.CellStyle>
541541
<Style TargetType="{x:Type DataGridCell}">

UnityLauncherPro/MainWindow.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,9 @@ private void OnGetUnityUpdatesClick(object sender, RoutedEventArgs e)
486486
var button = (Button)sender;
487487
button.IsEnabled = false;
488488

489+
// refresh installations, if already added some new ones
490+
UpdateUnityInstallationsList();
491+
489492
CallGetUnityUpdates();
490493

491494
button.IsEnabled = true;

0 commit comments

Comments
 (0)