Browse Source

double-click on a region will now toggle the marked status

master
Christian Voigt 1 year ago
parent
commit
cf04c663db
  1. 3
      world_regions_widget/region_label.py

3
world_regions_widget/region_label.py

@ -195,7 +195,8 @@ class RegionLabel(QLabel):
super().mousePressEvent(event)
def mouseDoubleClickEvent(self, event):
self.region_label_helper.change_region_label_toggle_marked_signal.emit(self)
if self.is_region:
self.region_label_helper.change_region_label_toggle_marked_signal.emit(self)
super().mouseDoubleClickEvent(event)
def enterEvent(self, event) -> None:

Loading…
Cancel
Save