mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-09-10 03:45:24 +00:00
chore: remove redundant CloseWindow helper
This commit is contained in:
@@ -38,7 +38,7 @@ namespace Ryujinx.Ava.UI.Views.Main
|
|||||||
ChangeLanguageMenuItem.ItemsSource = GenerateLanguageMenuItems();
|
ChangeLanguageMenuItem.ItemsSource = GenerateLanguageMenuItems();
|
||||||
|
|
||||||
MiiAppletMenuItem.Command = Commands.Create(OpenMiiApplet);
|
MiiAppletMenuItem.Command = Commands.Create(OpenMiiApplet);
|
||||||
CloseRyujinxMenuItem.Command = Commands.Create(CloseWindow);
|
CloseRyujinxMenuItem.Command = Commands.Create(() => Window?.Close());
|
||||||
OpenSettingsMenuItem.Command = Commands.Create(OpenSettings);
|
OpenSettingsMenuItem.Command = Commands.Create(OpenSettings);
|
||||||
PauseEmulationMenuItem.Command = Commands.Create(() => ViewModel.AppHost?.Pause());
|
PauseEmulationMenuItem.Command = Commands.Create(() => ViewModel.AppHost?.Pause());
|
||||||
ResumeEmulationMenuItem.Command = Commands.Create(() => ViewModel.AppHost?.Resume());
|
ResumeEmulationMenuItem.Command = Commands.Create(() => ViewModel.AppHost?.Resume());
|
||||||
@@ -235,8 +235,5 @@ namespace Ryujinx.Ava.UI.Views.Main
|
|||||||
Window.Arrange(new Rect(Window.Position.X, Window.Position.Y, windowWidthScaled, windowHeightScaled));
|
Window.Arrange(new Rect(Window.Position.X, Window.Position.Y, windowWidthScaled, windowHeightScaled));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CloseWindow() => Window.Close();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user