Merge pull request #2918 from mRemoteNG/copilot/fix-connection-options-setting

[WIP] Fix connection options displaying incorrect value
This commit is contained in:
Dimitrij
2025-10-16 20:54:27 +01:00
committed by GitHub
4 changed files with 15 additions and 0 deletions

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)

View File

@@ -29,6 +29,17 @@ namespace mRemoteNG.UI.Forms.OptionsPages
* 1) chkSaveConnectionsAfterEveryEdit: never used
*/
chkSaveConnectionsAfterEveryEdit.Visible = false; // Temporary hide control, never used, added: Jun 15, 2024
// Reload settings when page becomes visible to reflect any changes made outside the Options dialog
VisibleChanged += ConnectionsPage_VisibleChanged;
}
private void ConnectionsPage_VisibleChanged(object sender, EventArgs e)
{
if (Visible)
{
LoadSettings();
}
}
public override string PageName

View File

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

View File

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