aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Ava/Ui/ViewModels/SettingsViewModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Ava/Ui/ViewModels/SettingsViewModel.cs')
-rw-r--r--Ryujinx.Ava/Ui/ViewModels/SettingsViewModel.cs36
1 files changed, 35 insertions, 1 deletions
diff --git a/Ryujinx.Ava/Ui/ViewModels/SettingsViewModel.cs b/Ryujinx.Ava/Ui/ViewModels/SettingsViewModel.cs
index 58462741..bd4a55e8 100644
--- a/Ryujinx.Ava/Ui/ViewModels/SettingsViewModel.cs
+++ b/Ryujinx.Ava/Ui/ViewModels/SettingsViewModel.cs
@@ -118,7 +118,12 @@ namespace Ryujinx.Ava.Ui.ViewModels
OnPropertyChanged();
}
}
-
+
+ public bool IsMacOS
+ {
+ get => OperatingSystem.IsMacOS();
+ }
+
public bool EnableDiscordIntegration { get; set; }
public bool CheckUpdatesOnStart { get; set; }
public bool ShowConfirmExit { get; set; }
@@ -474,11 +479,40 @@ namespace Ryujinx.Ava.Ui.ViewModels
MainWindow.UpdateGraphicsConfig();
_previousVolumeLevel = Volume;
+
+ if (_owner is SettingsWindow owner)
+ {
+ owner.ControllerSettings?.SaveCurrentProfile();
+ }
+
+ if (_owner.Owner is MainWindow window && _directoryChanged)
+ {
+ window.ViewModel.LoadApplications();
+ }
+
+ _directoryChanged = false;
}
public void RevertIfNotSaved()
{
Program.ReloadConfig();
}
+
+ public void ApplyButton()
+ {
+ SaveSettings();
+ }
+
+ public void OkButton()
+ {
+ SaveSettings();
+ _owner.Close();
+ }
+
+ public void CancelButton()
+ {
+ RevertIfNotSaved();
+ _owner.Close();
+ }
}
} \ No newline at end of file