Reverted overlay update to run synchronously to fix issue with accessing objects from different threads
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user