From 7f06f5035ad9be80de7a1bf9720f41e7477f7ec7 Mon Sep 17 00:00:00 2001 From: Visne <39844191+Visne@users.noreply.github.com> Date: Thu, 2 Nov 2023 01:20:05 +0100 Subject: [PATCH] Unfocus connect button on press (#111) --- SS14.Launcher/ViewModels/MainWindowTabs/ServerEntryViewModel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SS14.Launcher/ViewModels/MainWindowTabs/ServerEntryViewModel.cs b/SS14.Launcher/ViewModels/MainWindowTabs/ServerEntryViewModel.cs index 4ab15a6e..b5e75ffc 100644 --- a/SS14.Launcher/ViewModels/MainWindowTabs/ServerEntryViewModel.cs +++ b/SS14.Launcher/ViewModels/MainWindowTabs/ServerEntryViewModel.cs @@ -1,5 +1,6 @@ using System; using System.ComponentModel; +using Avalonia.Input; using Microsoft.Toolkit.Mvvm.ComponentModel; using Microsoft.Toolkit.Mvvm.Messaging; using SS14.Launcher.Localization; @@ -49,6 +50,7 @@ public ServerEntryViewModel( public void ConnectPressed() { + FocusManager.Instance?.Focus(null); ConnectingViewModel.StartConnect(_windowVm, Address); }