mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-17 17:26:39 +00:00
Avoid using overlay window when not necessary
This commit is contained in:
parent
5ad5679145
commit
f0f84454a8
1 changed files with 38 additions and 31 deletions
|
@ -342,6 +342,8 @@ namespace Ryujinx.Ava.UI.Helpers
|
|||
isTopDialog = false;
|
||||
}
|
||||
|
||||
if (parent is MainWindow)
|
||||
{
|
||||
parent.Activate();
|
||||
|
||||
_contentDialogOverlayWindow = new ContentDialogOverlayWindow
|
||||
|
@ -385,6 +387,11 @@ namespace Ryujinx.Ava.UI.Helpers
|
|||
}
|
||||
|
||||
result = await _contentDialogOverlayWindow.ShowDialog<ContentDialogResult>(parent);
|
||||
}
|
||||
else
|
||||
{
|
||||
result = await contentDialog.ShowAsync(parent);
|
||||
}
|
||||
|
||||
async Task<ContentDialogResult> ShowDialog()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue