mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-29 08:04:59 +00:00
Fix ShowWindow to use owner in non-modal, if available
This commit is contained in:
parent
a8bf955fff
commit
86f8341f3b
1 changed files with 7 additions and 2 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