File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
J4JMapWinLibrary/map-control/dep-props Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ public sealed partial class J4JMapControl
3939 public event EventHandler < NewCredentialsEventArgs > ? NewCredentials ;
4040
4141 private readonly DispatcherQueue _dispatcherLoadImages = DispatcherQueue . GetForCurrentThread ( ) ;
42+ private readonly DispatcherQueue _dispatcherChangeProjection = DispatcherQueue . GetForCurrentThread ( ) ;
4243 private readonly ThrottleDispatcher _throttleRegionChanges = new ( ) ;
4344 private readonly ThrottleDispatcher _throttleProjChanges = new ( ) ;
4445
@@ -75,8 +76,7 @@ public string? MapProjection
7576 if ( ! IsLoaded )
7677 return ;
7778
78- _throttleProjChanges . Throttle ( UpdateEventInterval ,
79- _ => Task . Run ( async ( ) => await InitializeProjectionAsync ( ) ) ) ;
79+ _dispatcherChangeProjection . TryEnqueue ( async ( ) => await InitializeProjectionAsync ( ) ) ;
8080 }
8181 }
8282
You can’t perform that action at this time.
0 commit comments