Skip to content

Commit 9b0f2a5

Browse files
committed
Move base.OnStartup(e) to the beginning of the method
1 parent 2199eb9 commit 9b0f2a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IPConfig/App.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ protected override void OnExit(ExitEventArgs e)
162162

163163
protected override void OnStartup(StartupEventArgs e)
164164
{
165+
base.OnStartup(e);
166+
165167
// 全局异常处理。
166168
SetupExceptionHandling();
167169

@@ -171,8 +173,6 @@ protected override void OnStartup(StartupEventArgs e)
171173

172174
var mainWindow = Services.GetRequiredService<MainWindow>();
173175
mainWindow.Show();
174-
175-
base.OnStartup(e);
176176
}
177177

178178
/// <summary>

0 commit comments

Comments
 (0)