mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
enhance: secure exit
This commit is contained in:
parent
f4eca45754
commit
3aad24a64e
4 changed files with 15 additions and 11 deletions
|
@ -50,13 +50,13 @@ namespace SourceGit.Views
|
|||
private void CloseWindow(object _1, RoutedEventArgs _2)
|
||||
{
|
||||
Console.Out.WriteLine("No passphrase entered.");
|
||||
Environment.Exit(-1);
|
||||
App.Quit(-1);
|
||||
}
|
||||
|
||||
private void EnterPassword(object _1, RoutedEventArgs _2)
|
||||
{
|
||||
Console.Out.Write($"{Passphrase}\n");
|
||||
Environment.Exit(0);
|
||||
App.Quit(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue