Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit 983ee1b

Browse files
committed
Added confirmation for settings reset and an info msgbox for successful save
1 parent 4145e72 commit 983ee1b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

86BoxManager/dlgSettings.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ private void SaveSettings()
9595
regkey.Close();
9696

9797
settingsChanged = CheckForChanges();
98+
99+
MessageBox.Show("Settings were successfully saved.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
98100
}
99101
catch (Exception ex)
100102
{
@@ -203,7 +205,11 @@ private void cbxShowConsole_CheckedChanged(object sender, EventArgs e)
203205

204206
private void btnDefaults_Click(object sender, EventArgs e)
205207
{
206-
ResetSettings();
208+
DialogResult result = MessageBox.Show("All settings will be reset to their default values. Do you wish to continue?", "Settings will be reset", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
209+
if (result == DialogResult.Yes)
210+
{
211+
ResetSettings();
212+
}
207213
}
208214

209215
//Resets the settings to their default values

0 commit comments

Comments
 (0)