mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-26 10:33:05 +00:00
Enable/Disable Apply if dirty
This commit is contained in:
parent
417b4caa98
commit
7821d4581a
2 changed files with 3 additions and 1 deletions
|
@ -124,6 +124,7 @@
|
|||
Content="{locale:Locale SettingsButtonCancel}"
|
||||
Command="{Binding CancelButton}" />
|
||||
<Button
|
||||
Name="Apply"
|
||||
Content="{locale:Locale SettingsButtonApply}"
|
||||
Command="{Binding ApplyButton}" />
|
||||
</ReversibleStackPanel>
|
||||
|
|
|
@ -42,11 +42,12 @@ namespace Ryujinx.Ava.UI.Windows
|
|||
if (isDirty)
|
||||
{
|
||||
Title = $"{LocaleManager.Instance[LocaleKeys.Settings]} - {LocaleManager.Instance[LocaleKeys.SettingsDirty]}";
|
||||
Apply.IsEnabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Title = $"{LocaleManager.Instance[LocaleKeys.Settings]}";
|
||||
|
||||
Apply.IsEnabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue