Skip to content

Commit cf52ca3

Browse files
committed
Do not use Beep because of errors on unix systems.
1 parent 5567143 commit cf52ca3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ReClass.NET/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Diagnostics;
33
using System.Drawing;
44
using System.Globalization;
@@ -67,9 +67,9 @@ static void Main(string[] args)
6767
Settings = SettingsSerializer.Load();
6868
Logger = new GuiLogger();
6969

70-
if(!NativeMethods.IsUnix() && Settings.RunAsAdmin && !WinUtil.IsAdministrator)
70+
if (!NativeMethods.IsUnix() && Settings.RunAsAdmin && !WinUtil.IsAdministrator)
7171
{
72-
WinUtil.RunElevated(Process.GetCurrentProcess().MainModule.FileName, args.Length > 0 ? string.Join(" ", args) : null);
72+
WinUtil.RunElevated(Process.GetCurrentProcess().MainModule.FileName, args.Length > 0 ? string.Join(" ", args) : null);
7373
return;
7474
}
7575

@@ -106,6 +106,7 @@ public static void ShowException(Exception ex)
106106

107107
var msg = new ExceptionMessageBox(ex)
108108
{
109+
Beep = false,
109110
ShowToolBar = true,
110111
Symbol = ExceptionMessageBoxSymbol.Error
111112
};

0 commit comments

Comments
 (0)