Skip to content

Commit

Permalink
Merge pull request #96 from Jordan-Pierce/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Jordan-Pierce authored Dec 31, 2024
2 parents db1647c + 6c2357c commit 7abe5b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions coralnet_toolbox/QtLabelWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion coralnet_toolbox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from coralnet_toolbox.main import run

__version__ = "0.0.17"
__version__ = "0.0.18"
__author__ = "Jordan Pierce"
__email__ = "[email protected]"
__credits__ = "National Center for Coastal and Ocean Sciences (NCCOS)"
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "coralnet-toolbox"
version = "0.0.17"
version = "0.0.18"
dynamic = [
"dependencies",
]
Expand Down Expand Up @@ -48,7 +48,7 @@ universal = true


[tool.bumpversion]
current_version = "0.0.17"
current_version = "0.0.18"
commit = true
tag = true

Expand Down

0 comments on commit 7abe5b1

Please sign in to comment.