Skip to content

Commit 13dcc16

Browse files
committed
Fixed error dialog crashing when changing startup setting without permissions
1 parent 6686876 commit 13dcc16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Automatic Volume Mixer/Forms/SettingsWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ private void checkBoxBoot_CheckedChanged(object sender, EventArgs e)
6161

6262
private static void ShowBootException(Exception ex)
6363
{
64-
PremadeDialogs.GenericError("Failed to access the start on boot registry setting",
65-
"You might need to run AVM as an administrator. Error message: " + ex.Message);
64+
MessageBox.Show("You need to run AVM as an administrator.\n\nError message: " + ex.Message,
65+
"Settings", MessageBoxButtons.OK, MessageBoxIcon.Error);
6666
}
6767

6868
private void SettingsWindow_Shown(object sender, EventArgs e)

0 commit comments

Comments
 (0)