- tweak: style thinks

This commit is contained in:
2025-06-28 14:05:19 +03:00
parent 01ebe3219d
commit 9e95d68c4a
11 changed files with 27 additions and 38 deletions

View File

@@ -24,8 +24,7 @@ public sealed partial class EditServerNameViewModel : PopupViewModelBase
if (string.IsNullOrWhiteSpace(NameInput))
{
RemoveServerName();
Dispose();
OnClear();
return;
}
@@ -33,6 +32,12 @@ public sealed partial class EditServerNameViewModel : PopupViewModelBase
Dispose();
}
public void OnClear()
{
RemoveServerName();
Dispose();
}
private void AddServerName()
{
var currentNames = ConfigurationService.GetConfigValue(LauncherConVar.ServerCustomNames)!;