diff --git a/Client/Views/LoginScreen.xaml b/Client/Views/LoginScreen.xaml
index e011780..d39dda9 100644
--- a/Client/Views/LoginScreen.xaml
+++ b/Client/Views/LoginScreen.xaml
@@ -23,7 +23,7 @@
-
+
diff --git a/Client/Views/LoginScreen.xaml.cs b/Client/Views/LoginScreen.xaml.cs
index 5b742d2..4ee92bc 100644
--- a/Client/Views/LoginScreen.xaml.cs
+++ b/Client/Views/LoginScreen.xaml.cs
@@ -28,6 +28,7 @@ namespace Client.Views
{
User user = new User(usernameTextbox.Text);
Client client = new Client(user.Username);
+ loginButton.IsEnabled = false;
client.OnSuccessfullConnect = () =>
{
// because we need to start the main window on a UI thread, we need to let the dispatcher handle it, which will execute the code on the ui thread
@@ -41,6 +42,7 @@ namespace Client.Views
});
};
+
}
}
}