From 533671c59f44ae4192261c565a275e966d11d4bb Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Sun, 15 Sep 2019 20:30:10 +0300 Subject: [PATCH] [GUI] Allow the app to crash in DEBUG mode --- DiscordChatExporter.Gui/Bootstrapper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DiscordChatExporter.Gui/Bootstrapper.cs b/DiscordChatExporter.Gui/Bootstrapper.cs index 4d7c260..b442a28 100644 --- a/DiscordChatExporter.Gui/Bootstrapper.cs +++ b/DiscordChatExporter.Gui/Bootstrapper.cs @@ -24,11 +24,13 @@ namespace DiscordChatExporter.Gui builder.Bind().ToAbstractFactory(); } +#if !DEBUG protected override void OnUnhandledException(DispatcherUnhandledExceptionEventArgs e) { base.OnUnhandledException(e); MessageBox.Show(e.Exception.ToString(), "Error occured", MessageBoxButton.OK, MessageBoxImage.Error); } +#endif } } \ No newline at end of file