fixed source stack panel, added autoscroll to the log when adding an entry

This commit is contained in:
kitbyte
2025-03-21 23:53:24 +02:00
parent 4049ade4b1
commit 68cbbee275
4 changed files with 45 additions and 13 deletions
+24 -1
View File
@@ -1,9 +1,32 @@
namespace WeModPatcher
using System;
using System.Threading.Tasks;
using System.Windows;
using MessageBox = System.Windows.Forms.MessageBox;
namespace WeModPatcher
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App
{
protected override void OnStartup(StartupEventArgs e)
{
AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
TaskScheduler.UnobservedTaskException += OnUnobservedTaskException;
base.OnStartup(e);
}
private void OnUnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
{
MessageBox.Show(e.ToString());
Shutdown();
}
private void OnUnhandledException(object sender, UnhandledExceptionEventArgs e)
{
MessageBox.Show(e.ToString());
Shutdown();
}
}
}