mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-22 02:45:00 +00:00
enhance: new confirm empty commit dialog (#1143)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
898a8bc69a
commit
506af95963
14 changed files with 144 additions and 14 deletions
29
src/Views/ConfirmEmptyCommit.axaml.cs
Normal file
29
src/Views/ConfirmEmptyCommit.axaml.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
using Avalonia.Interactivity;
|
||||
|
||||
namespace SourceGit.Views
|
||||
{
|
||||
public partial class ConfirmEmptyCommit : ChromelessWindow
|
||||
{
|
||||
public ConfirmEmptyCommit()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void StageAllThenCommit(object _1, RoutedEventArgs _2)
|
||||
{
|
||||
(DataContext as ViewModels.ConfirmEmptyCommit)?.StageAllThenCommit();
|
||||
Close();
|
||||
}
|
||||
|
||||
private void Continue(object _1, RoutedEventArgs _2)
|
||||
{
|
||||
(DataContext as ViewModels.ConfirmEmptyCommit)?.Continue();
|
||||
Close();
|
||||
}
|
||||
|
||||
private void CloseWindow(object _1, RoutedEventArgs _2)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue