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>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-16 19:52:57 +00:00
parent 01e22740ce
commit cd7f237920

View File

@@ -811,6 +811,7 @@ namespace mRemoteNG.UI.Controls
if (CTaskDialog.VerificationChecked)
{
Settings.Default.ConfirmCloseConnection = (int)ConfirmCloseEnum.Never;
Settings.Default.Save();
}
if (result == DialogResult.No)