Skip to content

Commit

Permalink
if Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mili-tan committed Jan 2, 2019
1 parent 3f90e13 commit dbb6629
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion AuroraGUI/SettingsWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.IO;
using System.Linq;
using System.Net;
using System.Reflection;
using System.Security.Principal;
using System.Windows;
using System.Windows.Controls;
Expand Down Expand Up @@ -234,7 +235,10 @@ private void SpeedTestDNS_OnClick(object sender, RoutedEventArgs e)

private void Expert_OnClick(object sender, RoutedEventArgs e)
{
new ExpertWindow().Show();
if (Environment.StackTrace.ToLower().IndexOf(":line ", StringComparison.Ordinal) >= 0)
new ExpertWindow().Show();
else
MessageBox.Show("现在这里还什么都没有。");
}
}
}

0 comments on commit dbb6629

Please sign in to comment.