Skip to content

Commit

Permalink
fix: maptool not reset after double click
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed Nov 15, 2024
1 parent 7ca8534 commit 14e211c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ORStools/gui/ORStoolsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,13 @@ def _reindex_list_items(self) -> None:
annotation = self._linetool_annotate_point(point, idx)
self.annotations.append(annotation)
self.project.annotationManager().addAnnotation(annotation)
self.create_rubber_band()
try:
self.create_rubber_band()
except Exception as e:
if "Connection refused" in str(e):
self.api_key_message_bar()
else:
raise e

def _on_line_tool_map_doubleclick(self):
"""
Expand Down

0 comments on commit 14e211c

Please sign in to comment.