mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-13 15:34:36 +01:00
clean up code
This commit is contained in:
@@ -15,6 +15,12 @@ public partial class MainView : UserControl
|
||||
|
||||
private void Save_Click(object? sender, Avalonia.Interactivity.RoutedEventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(txtGamePath.Text) || string.IsNullOrEmpty(txtLauncherPath.Text))
|
||||
{
|
||||
ShowWarningMsg("Game path / launcher path is empty", "Error");
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
ServerSwitcher.SaveCfg(CmbServerSelection.SelectedIndex == 0, txtGamePath.Text, txtLauncherPath.Text);
|
||||
|
||||
Reference in New Issue
Block a user