mirror of
https://github.com/4sval/FModel.git
synced 2026-08-24 18:34:30 -05:00
This commit is contained in:
@@ -351,6 +351,7 @@
|
||||
<TreeView Grid.Row="2"
|
||||
x:Name="AssetsFolderName"
|
||||
Style="{StaticResource AssetsFolderTreeView}"
|
||||
SelectedItemChanged="OnAssetsTreeSelectedItemChanged"
|
||||
PreviewKeyDown="OnFoldersPreviewKeyDown"
|
||||
PreviewMouseDoubleClick="OnAssetsTreeMouseDoubleClick">
|
||||
</TreeView>
|
||||
|
||||
@@ -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<object> 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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user