Reverted overlay update to run synchronously to fix issue with accessing objects from different threads

This commit is contained in:
2025-05-22 11:37:43 -04:00
parent 3fde352a15
commit 1963c1a922
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ namespace osrs_toolbox
{
DispatcherTimer dt = new DispatcherTimer();
dt.Interval = TimeSpan.FromSeconds(5);
dt.Tick += new EventHandler(TimerTickAsync);
dt.Tick += new EventHandler(TimerTick);
dt.Start();
}

View File

@@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:osrs_toolbox"
mc:Ignorable="d"
Title="Competition Info" Height="800" Width="500" AllowsTransparency="True" Background="Transparent" WindowStyle="None" ResizeMode="CanResizeWithGrip" MouseDown="Window_MouseDown">
Title="Competition Info" Height="800" Width="500" AllowsTransparency="True" Background="Transparent" WindowStyle="None" ResizeMode="NoResize" SizeToContent="WidthAndHeight" MouseDown="Window_MouseDown">
<Window.DataContext>
<local:CompetitionOverlayViewModel/>
</Window.DataContext>