… | |
… | |
627 | |
627 | |
628 | if ($delay) { |
628 | if ($delay) { |
629 | # delay the map drawing a tiny bit in the hope of getting the missing fetched |
629 | # delay the map drawing a tiny bit in the hope of getting the missing fetched |
630 | Event->timer (after => 0.03, cb => sub { |
630 | Event->timer (after => 0.03, cb => sub { |
631 | $_[0]->w->cancel; |
631 | $_[0]->w->cancel; |
632 | $self->{map_widget}->update; |
632 | $self->{map_widget}->update |
|
|
633 | if $self->{map_widget}; |
633 | }); |
634 | }); |
634 | } else { |
635 | } else { |
635 | $self->{map_widget}->update; |
636 | $self->{map_widget}->update; |
636 | } |
637 | } |
637 | } |
638 | } |