mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 02:53:04 +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}"
|
Content="{locale:Locale SettingsButtonCancel}"
|
||||||
Command="{Binding CancelButton}" />
|
Command="{Binding CancelButton}" />
|
||||||
<Button
|
<Button
|
||||||
|
Name="Apply"
|
||||||
Content="{locale:Locale SettingsButtonApply}"
|
Content="{locale:Locale SettingsButtonApply}"
|
||||||
Command="{Binding ApplyButton}" />
|
Command="{Binding ApplyButton}" />
|
||||||
</ReversibleStackPanel>
|
</ReversibleStackPanel>
|
||||||
|
|
|
@ -42,11 +42,12 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
if (isDirty)
|
if (isDirty)
|
||||||
{
|
{
|
||||||
Title = $"{LocaleManager.Instance[LocaleKeys.Settings]} - {LocaleManager.Instance[LocaleKeys.SettingsDirty]}";
|
Title = $"{LocaleManager.Instance[LocaleKeys.Settings]} - {LocaleManager.Instance[LocaleKeys.SettingsDirty]}";
|
||||||
|
Apply.IsEnabled = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Title = $"{LocaleManager.Instance[LocaleKeys.Settings]}";
|
Title = $"{LocaleManager.Instance[LocaleKeys.Settings]}";
|
||||||
|
Apply.IsEnabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue