mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-27 21:27:19 -08:00
29 lines
697 B
C#
29 lines
697 B
C#
using Avalonia.Input;
|
|
using Avalonia.Interactivity;
|
|
|
|
namespace SourceGit.Views
|
|
{
|
|
public partial class ConventionalCommitMessageBuilder : ChromelessWindow
|
|
{
|
|
public ConventionalCommitMessageBuilder()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void BeginMoveWindow(object _, PointerPressedEventArgs e)
|
|
{
|
|
BeginMoveDrag(e);
|
|
}
|
|
|
|
private void OnApplyClicked(object _, RoutedEventArgs e)
|
|
{
|
|
if (DataContext is ViewModels.ConventionalCommitMessageBuilder builder)
|
|
{
|
|
if (builder.Apply())
|
|
Close();
|
|
}
|
|
|
|
e.Handled = true;
|
|
}
|
|
}
|
|
}
|