mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-29 17:19:50 -06:00
UI: Fix diaglog popups doubling the window controls and laying text over the menu bar.
This commit is contained in:
@ -22,12 +22,11 @@ namespace Ryujinx.Ava.UI.Views.Main
|
||||
{
|
||||
base.OnAttachedToVisualTree(e);
|
||||
|
||||
if (VisualRoot is MainWindow)
|
||||
if (VisualRoot is MainWindow window)
|
||||
{
|
||||
ViewModel = MainWindow.ViewModel;
|
||||
DataContext = ViewModel = window.ViewModel;
|
||||
}
|
||||
|
||||
DataContext = ViewModel;
|
||||
}
|
||||
|
||||
public void Sort_Checked(object sender, RoutedEventArgs args)
|
||||
|
Reference in New Issue
Block a user