From cd7f23792093402f322734f0cd91c7ba4d452ff4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 16 Oct 2025 19:52:57 +0000 Subject: [PATCH] Add Settings.Default.Save() to ConnectionContextMenu disconnect Found another location where ConfirmCloseConnection is changed without immediately saving. This ensures all four code paths that change this setting persist it immediately. Co-authored-by: Kvarkas <3611964+Kvarkas@users.noreply.github.com> --- mRemoteNG/UI/Controls/ConnectionContextMenu.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/mRemoteNG/UI/Controls/ConnectionContextMenu.cs b/mRemoteNG/UI/Controls/ConnectionContextMenu.cs index 320003a8c..a526f84fc 100644 --- a/mRemoteNG/UI/Controls/ConnectionContextMenu.cs +++ b/mRemoteNG/UI/Controls/ConnectionContextMenu.cs @@ -811,6 +811,7 @@ namespace mRemoteNG.UI.Controls if (CTaskDialog.VerificationChecked) { Settings.Default.ConfirmCloseConnection = (int)ConfirmCloseEnum.Never; + Settings.Default.Save(); } if (result == DialogResult.No)