… | |
… | |
613 | } |
613 | } |
614 | } |
614 | } |
615 | |
615 | |
616 | if ($delay) { |
616 | if ($delay) { |
617 | # delay the map drawing a tiny bit in the hope of getting the missing fetched |
617 | # delay the map drawing a tiny bit in the hope of getting the missing fetched |
618 | my $delay_draw; $delay_draw = EV::timer 0.03, 0, sub { |
618 | EV::once undef, 0, 0.03, sub { |
619 | undef $delay_draw; |
|
|
620 | $self->{map_widget}->update |
619 | $self->{map_widget}->update |
621 | if $self->{map_widget}; |
620 | if $self->{map_widget}; |
622 | }; |
621 | }; |
623 | } else { |
622 | } else { |
624 | $self->{map_widget}->update; |
623 | $self->{map_widget}->update; |