mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 05:10:25 +08:00
code_style: mark event handled for after dialog closed
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -568,6 +568,7 @@ namespace SourceGit.Views
|
||||
if (vm.Staged == null || vm.Staged.Count == 0)
|
||||
{
|
||||
App.RaiseException(repo.FullPath, "No files added to commit!");
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -575,12 +576,14 @@ namespace SourceGit.Views
|
||||
if (services.Count == 0)
|
||||
{
|
||||
App.RaiseException(repo.FullPath, "Bad configuration for OpenAI");
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if (services.Count == 1)
|
||||
{
|
||||
await App.ShowDialog(new ViewModels.AIAssistant(repo, services[0], vm.Staged));
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -179,6 +179,7 @@ namespace SourceGit.Views
|
||||
if (e is { KeyModifiers: KeyModifiers.None, Key: Key.F1 })
|
||||
{
|
||||
await App.ShowDialog(new Hotkeys());
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user