From ab1fecfa93a32a277adfc18a179bc6664eed1e41 Mon Sep 17 00:00:00 2001 From: Jordan Pierce <115024024+Jordan-Pierce@users.noreply.github.com> Date: Mon, 30 Dec 2024 20:01:32 -0500 Subject: [PATCH 1/2] edit / add label bug --- coralnet_toolbox/QtLabelWindow.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/coralnet_toolbox/QtLabelWindow.py b/coralnet_toolbox/QtLabelWindow.py index 928f2fa3..8b48e2d2 100644 --- a/coralnet_toolbox/QtLabelWindow.py +++ b/coralnet_toolbox/QtLabelWindow.py @@ -324,9 +324,10 @@ def set_active_label(self, selected_label): # Update the transparency slider with the new label's transparency self.transparencyChanged.emit(self.active_label.transparency) - # Enable or disable the Edit Label and Delete Label buttons based on whether a label is selected - self.edit_label_button.setEnabled(self.active_label is not None) - self.delete_label_button.setEnabled(self.active_label is not None) + # Only enable edit/delete buttons if not locked + if not self.label_locked: + self.edit_label_button.setEnabled(self.active_label is not None) + self.delete_label_button.setEnabled(self.active_label is not None) # Update annotations with the new label self.update_annotations_with_label(selected_label) From 6c2357c19236154ba30a2efc373ef01bbe2e7a89 Mon Sep 17 00:00:00 2001 From: Jordan Pierce <115024024+Jordan-Pierce@users.noreply.github.com> Date: Mon, 30 Dec 2024 20:02:06 -0500 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20version:=200.0.17=20=E2=86=92=200.0.?= =?UTF-8?q?18?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coralnet_toolbox/__init__.py | 2 +- pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/coralnet_toolbox/__init__.py b/coralnet_toolbox/__init__.py index d52aadc7..24c80ec1 100644 --- a/coralnet_toolbox/__init__.py +++ b/coralnet_toolbox/__init__.py @@ -2,7 +2,7 @@ from coralnet_toolbox.main import run -__version__ = "0.0.17" +__version__ = "0.0.18" __author__ = "Jordan Pierce" __email__ = "jordan.pierce@noaa.gov" __credits__ = "National Center for Coastal and Ocean Sciences (NCCOS)" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 84298d58..1c60b197 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "coralnet-toolbox" -version = "0.0.17" +version = "0.0.18" dynamic = [ "dependencies", ] @@ -48,7 +48,7 @@ universal = true [tool.bumpversion] -current_version = "0.0.17" +current_version = "0.0.18" commit = true tag = true