mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-23 06:51:21 -08:00
Avoid using overlay window when not necessary
This commit is contained in:
parent
5ad5679145
commit
f0f84454a8
@ -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 New Issue
Block a user