From 21800a19a555fe52a7058f6625519bdf7d98ad74 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 eb125512..f1a49c25 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.Models.Data; @@ -49,6 +50,7 @@ public ServerEntryViewModel( public void ConnectPressed() { + FocusManager.Instance?.Focus(null); ConnectingViewModel.StartConnect(_windowVm, Address); }