From fe4529908ee38e128f789f7e54b72310aac99dfb Mon Sep 17 00:00:00 2001 From: Asval Date: Mon, 22 Dec 2025 00:02:37 +0100 Subject: [PATCH] some post update fixes --- FModel/MainWindow.xaml | 1 + FModel/MainWindow.xaml.cs | 10 +++++++++- FModel/ViewModels/UpdateViewModel.cs | 9 ++++++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/FModel/MainWindow.xaml b/FModel/MainWindow.xaml index 816ed7ff..82da6143 100644 --- a/FModel/MainWindow.xaml +++ b/FModel/MainWindow.xaml @@ -351,6 +351,7 @@ diff --git a/FModel/MainWindow.xaml.cs b/FModel/MainWindow.xaml.cs index 434b2d33..2c532723 100644 --- a/FModel/MainWindow.xaml.cs +++ b/FModel/MainWindow.xaml.cs @@ -103,7 +103,7 @@ public partial class MainWindow await Task.WhenAll( ApplicationViewModel.InitOodle(), ApplicationViewModel.InitZlib() - ).ConfigureAwait(false); + ); await _applicationView.CUE4Parse.Initialize(); await _applicationView.AesManager.InitAes(); @@ -275,6 +275,14 @@ public partial class MainWindow } } + private void OnAssetsTreeSelectedItemChanged(object sender, RoutedPropertyChangedEventArgs e) + { + if (sender is not TreeView { SelectedItem: TreeItem }) return; + + _applicationView.IsAssetsExplorerVisible = true; + _applicationView.SelectedLeftTabIndex = 1; + } + private async void OnAssetsListMouseDoubleClick(object sender, MouseButtonEventArgs e) { if (sender is not ListBox listBox) return; diff --git a/FModel/ViewModels/UpdateViewModel.cs b/FModel/ViewModels/UpdateViewModel.cs index b6088e0a..adbc79bd 100644 --- a/FModel/ViewModels/UpdateViewModel.cs +++ b/FModel/ViewModels/UpdateViewModel.cs @@ -76,7 +76,14 @@ public partial class UpdateViewModel : ViewModel foreach (Match match in matches) { if (match.Groups.Count < 3) continue; - coAuthorMap[commit].Add(match.Groups[1].Value); + + var username = match.Groups[1].Value; + if (username.Equals("Asval", StringComparison.OrdinalIgnoreCase)) + { + username = "4sval"; // found out the hard way co-authored usernames can't be trusted + } + + coAuthorMap[commit].Add(username); } }