mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-01 01:14:59 +00:00
Task/UI usability tweaks (#1314)
* Allow About to center in parent * About closes on Escape * ConfirmEmptyCommit dialog closes on Escape * Ignore Dev file * Missed condition --------- Co-authored-by: Martin Smith <martin.smith@purplebricks.com>
This commit is contained in:
parent
6c62789c4c
commit
85b223a3d0
4 changed files with 16 additions and 3 deletions
|
@ -109,8 +109,13 @@ namespace SourceGit
|
|||
{
|
||||
if (data is Views.ChromelessWindow window)
|
||||
{
|
||||
if (showAsDialog && Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime { MainWindow: { } owner })
|
||||
window.ShowDialog(owner);
|
||||
if (Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime { MainWindow: { } owner })
|
||||
{
|
||||
if (showAsDialog)
|
||||
window.ShowDialog(owner);
|
||||
else
|
||||
window.Show(owner);
|
||||
}
|
||||
else
|
||||
window.Show();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue