mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-20 09:41:14 +02:00
UI: Fix Restart Emulation menu item not being clickable
This commit is contained in:
@@ -189,13 +189,13 @@
|
||||
Click="StopEmulation_Click"
|
||||
Header="{locale:Locale MenuBarOptionsStopEmulation}"
|
||||
InputGesture="Escape"
|
||||
IsEnabled="{Binding IsGameRunning}" />
|
||||
<MenuItem
|
||||
Name="RestartEmulationMenuItem"
|
||||
Header="{locale:Locale MenuBarOptionsRestartEmulation}"
|
||||
InputGesture="Ctrl + R"
|
||||
IsEnabled="{Binding IsGameRunning}"
|
||||
ToolTip.Tip="{locale:Locale StopEmulationTooltip}" />
|
||||
<MenuItem
|
||||
Click="RestartEmulation_Click"
|
||||
Header="{locale:Locale MenuBarOptionsRestartEmulation}"
|
||||
InputGesture="Ctrl + R"
|
||||
IsEnabled="{Binding IsGameRunning}" />
|
||||
<MenuItem Command="{Binding SimulateWakeUpMessage}" Header="{locale:Locale MenuBarOptionsSimulateWakeUpMessage}" />
|
||||
<Separator />
|
||||
<MenuItem
|
||||
|
||||
@@ -119,6 +119,11 @@ namespace Ryujinx.Ava.UI.Views.Main
|
||||
Window.ViewModel.AppHost?.Resume();
|
||||
}
|
||||
|
||||
private void RestartEmulation_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Window.ViewModel?.RestartEmulation();
|
||||
}
|
||||
|
||||
public async void OpenMiiApplet(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string contentPath = ViewModel.ContentManager.GetInstalledContentPath(0x0100000000001009, StorageId.BuiltInSystem, NcaContentType.Program);
|
||||
|
||||
Reference in New Issue
Block a user