You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The zone completion assistant & the tasks tracker display distances in feet by default, but they should instead detect the preferred distance unit from the user's regional settings.
if(this.userData ==null){this.userData =new ZoneCompletionUserData();// Add this blockif(System.Globalization.RegionInfo.CurrentRegion.IsMetric){this.userData.DistanceUnits = Units.Meters;}}
Gotcha: the value of RegionInfo.CurrentRegion is cached for the lifetime of the application. This will bite you sooner or later. When a user changes their regional settings, CurrentRegion remains whatever it was initialized to. You can clear the cache by explicitly calling CultureInfo.ClearCachedData().
The text was updated successfully, but these errors were encountered:
The zone completion assistant & the tasks tracker display distances in feet by default, but they should instead detect the preferred distance unit from the user's regional settings.
In
gw2pao/GW2PAO/Modules/ZoneCompletion/ZoneCompletionModule.cs
Line 60 in 495bf52
Gotcha: the value of
RegionInfo.CurrentRegion
is cached for the lifetime of the application. This will bite you sooner or later. When a user changes their regional settings,CurrentRegion
remains whatever it was initialized to. You can clear the cache by explicitly callingCultureInfo.ClearCachedData()
.The text was updated successfully, but these errors were encountered: