mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-25 19:38:37 +08:00
Merge pull request #2918 from mRemoteNG/copilot/fix-connection-options-setting
[WIP] Fix connection options displaying incorrect value
This commit is contained in:
@@ -811,6 +811,7 @@ namespace mRemoteNG.UI.Controls
|
||||
if (CTaskDialog.VerificationChecked)
|
||||
{
|
||||
Settings.Default.ConfirmCloseConnection = (int)ConfirmCloseEnum.Never;
|
||||
Settings.Default.Save();
|
||||
}
|
||||
|
||||
if (result == DialogResult.No)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -56,6 +56,7 @@ namespace mRemoteNG.UI.Tabs
|
||||
if (CTaskDialog.VerificationChecked)
|
||||
{
|
||||
Settings.Default.ConfirmCloseConnection = (int)ConfirmCloseEnum.Never;
|
||||
Settings.Default.Save();
|
||||
}
|
||||
|
||||
if (result == DialogResult.No)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user