fix los init localization

chore/offband-rebrand
just_stuff_tm 5 months ago
parent ea1d728d4f
commit 515b9c1f29

@ -73,6 +73,7 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
bool _showMarkerLabels = true;
bool _didReceivePositionUpdate = false;
int _losRequestNonce = 0;
bool _initialLosScheduled = false;
@override
void initState() {
@ -83,7 +84,16 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
_end = widget.candidates[1];
}
}
_scheduleInitialRun();
}
void _scheduleInitialRun() {
if (_initialLosScheduled) return;
_initialLosScheduled = true;
WidgetsBinding.instance.addPostFrameCallback((_) {
if (!mounted) return;
_runLos();
});
}
@override

Loading…
Cancel
Save

Powered by TurnKey Linux.