Skip to content

Commit 14e211c

Browse files
committed
fix: maptool not reset after double click
1 parent 7ca8534 commit 14e211c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ORStools/gui/ORStoolsDialog.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,13 @@ def _reindex_list_items(self) -> None:
847847
annotation = self._linetool_annotate_point(point, idx)
848848
self.annotations.append(annotation)
849849
self.project.annotationManager().addAnnotation(annotation)
850-
self.create_rubber_band()
850+
try:
851+
self.create_rubber_band()
852+
except Exception as e:
853+
if "Connection refused" in str(e):
854+
self.api_key_message_bar()
855+
else:
856+
raise e
851857

852858
def _on_line_tool_map_doubleclick(self):
853859
"""

0 commit comments

Comments
 (0)