chore: ui perf

[skip changelog]
This commit is contained in:
status102
2024-08-11 16:56:07 +08:00
parent cb429ba703
commit b3b9198db8
2 changed files with 2 additions and 4 deletions

View File

@@ -4827,7 +4827,7 @@ namespace MaaWpfGui.ViewModels.UI
get => _language;
set
{
if (value == _language)
if (!SetAndNotify(ref _language, value))
{
return;
}
@@ -4867,7 +4867,6 @@ namespace MaaWpfGui.ViewModels.UI
Bootstrapper.ShutdownAndRestartWithoutArgs();
}
SetAndNotify(ref _language, value);
return;
string FormatText(string text, string key)

View File

@@ -86,8 +86,7 @@
<Button
Height="30"
Margin="0,10,0,0"
HorizontalAlignment="Stretch"
Margin="20,10,20,0"
s:View.ActionTarget="{Binding PostActionSetting}"
Command="{s:Action PostActionsClear}"
Content="{DynamicResource Clear}" />