Add buttons interactibility toggle
This commit is contained in:
parent
fd33ebb42d
commit
417b4caa98
@ -67,6 +67,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||
public event Action CloseWindow;
|
||||
public event Action SaveSettingsEvent;
|
||||
public event Action<bool> DirtyEvent;
|
||||
public event Action<bool> ToggleButtons;
|
||||
|
||||
public int ResolutionScale
|
||||
{
|
||||
|
@ -108,6 +108,7 @@
|
||||
</ui:NavigationView>
|
||||
<ReversibleStackPanel
|
||||
Grid.Row="2"
|
||||
Name="Buttons"
|
||||
Margin="10"
|
||||
Spacing="10"
|
||||
Orientation="Horizontal"
|
||||
|
@ -22,6 +22,7 @@ namespace Ryujinx.Ava.UI.Windows
|
||||
ViewModel.CloseWindow += Close;
|
||||
ViewModel.SaveSettingsEvent += SaveSettings;
|
||||
ViewModel.DirtyEvent += UpdateDirtyTitle;
|
||||
ViewModel.ToggleButtons += ToggleButtons;
|
||||
|
||||
InitializeComponent();
|
||||
Load();
|
||||
@ -49,6 +50,11 @@ namespace Ryujinx.Ava.UI.Windows
|
||||
}
|
||||
}
|
||||
|
||||
public void ToggleButtons(bool enable)
|
||||
{
|
||||
Buttons.IsEnabled = enable;
|
||||
}
|
||||
|
||||
public void SaveSettings()
|
||||
{
|
||||
InputPage.InputView?.SaveCurrentProfile();
|
||||
|
Loading…
Reference in New Issue
Block a user