Skip to content

Commit

Permalink
Fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dremin committed Nov 21, 2024
1 parent 7ea7b2b commit 224791f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions RetroBar/Utilities/ExplorerMonitor.cs
Original file line number Diff line number Diff line change
@@ -37,16 +37,16 @@ protected override void WndProc(ref Message m)
{
if (m.Msg == WM_TASKBARCREATEDMESSAGE)
{
try
{
Dispatcher.CurrentDispatcher.BeginInvoke(() => {
Dispatcher.CurrentDispatcher.BeginInvoke(() => {
try
{
_windowManagerRef.ReopenTaskbars(); // Reopen taskbars if explorer.exe is restarted.
});
}
catch (Exception ex)
{
ShellLogger.Warning($"Error handling TaskbarCreated message on ExplorerMonitor: {ex.Message}");
}
}
catch (Exception ex)
{
ShellLogger.Warning($"Error handling TaskbarCreated message on ExplorerMonitor: {ex.Message}");
}
});
}

base.WndProc(ref m); // Call the base class to process other messages so we dont accidentally cause crashes or bugs.

0 comments on commit 224791f

Please sign in to comment.