mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Merge pull request #2916 from mRemoteNG/copilot/fix-connection-warning-option
Fix: Set ConfirmCloseConnection to Never when "Do not show this dialog again" is checked
This commit is contained in:
@@ -810,7 +810,7 @@ namespace mRemoteNG.UI.Controls
|
||||
ESysIcons.Question);
|
||||
if (CTaskDialog.VerificationChecked)
|
||||
{
|
||||
Settings.Default.ConfirmCloseConnection--;
|
||||
Settings.Default.ConfirmCloseConnection = (int)ConfirmCloseEnum.Never;
|
||||
}
|
||||
|
||||
if (result == DialogResult.No)
|
||||
|
||||
@@ -470,7 +470,7 @@ namespace mRemoteNG.UI.Forms
|
||||
DialogResult result = CTaskDialog.MessageBox(this, Application.ProductName, Language.ConfirmExitMainInstruction, "", "", "", Language.CheckboxDoNotShowThisMessageAgain, ETaskDialogButtons.YesNo, ESysIcons.Question, ESysIcons.Question);
|
||||
if (CTaskDialog.VerificationChecked)
|
||||
{
|
||||
Properties.Settings.Default.ConfirmCloseConnection--; //--?
|
||||
Properties.Settings.Default.ConfirmCloseConnection = (int)ConfirmCloseEnum.Never;
|
||||
}
|
||||
|
||||
if (result == DialogResult.No)
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace mRemoteNG.UI.Tabs
|
||||
ESysIcons.Question);
|
||||
if (CTaskDialog.VerificationChecked)
|
||||
{
|
||||
Settings.Default.ConfirmCloseConnection--;
|
||||
Settings.Default.ConfirmCloseConnection = (int)ConfirmCloseEnum.Never;
|
||||
}
|
||||
|
||||
if (result == DialogResult.No)
|
||||
|
||||
@@ -297,7 +297,7 @@ namespace mRemoteNG.UI.Window
|
||||
ESysIcons.Question);
|
||||
if (CTaskDialog.VerificationChecked)
|
||||
{
|
||||
Settings.Default.ConfirmCloseConnection--;
|
||||
Settings.Default.ConfirmCloseConnection = (int)ConfirmCloseEnum.Never;
|
||||
}
|
||||
|
||||
if (result == DialogResult.No)
|
||||
@@ -662,7 +662,7 @@ namespace mRemoteNG.UI.Window
|
||||
ESysIcons.Question);
|
||||
if (CTaskDialog.VerificationChecked)
|
||||
{
|
||||
Settings.Default.ConfirmCloseConnection--;
|
||||
Settings.Default.ConfirmCloseConnection = (int)ConfirmCloseEnum.Never;
|
||||
}
|
||||
|
||||
if (result == DialogResult.No)
|
||||
|
||||
Reference in New Issue
Block a user