Show the window before slow location probes and wrap git.exe for commit, diff, and merge.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
24
src/Explorer.App/GitCommitWindow.xaml.cs
Normal file
24
src/Explorer.App/GitCommitWindow.xaml.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Windows;
|
||||
using Explorer.Presentation.ViewModels;
|
||||
|
||||
namespace Explorer.App;
|
||||
|
||||
public partial class GitCommitWindow : Window
|
||||
{
|
||||
public GitCommitWindow(GitCommitViewModel vm)
|
||||
{
|
||||
InitializeComponent();
|
||||
DataContext = vm;
|
||||
vm.CloseRequested += (_, _) =>
|
||||
{
|
||||
try
|
||||
{
|
||||
DialogResult = true;
|
||||
}
|
||||
catch (InvalidOperationException)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user