Skip to content

Commit

Permalink
fix: moving an unused tool into a library failed
Browse files Browse the repository at this point in the history
  • Loading branch information
knipknap committed Aug 27, 2023
1 parent 5002d56 commit 4099aa5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion btl/ui/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def on_move_tool_clicked(self):
library = self.get_selected_library()
for tool in tools:
self.db.add_tool(tool, dialog.library)
library.remove_tool(tool)
if library:
library.remove_tool(tool)

self.db.serialize(self.serializer)
self.load()
Expand Down

0 comments on commit 4099aa5

Please sign in to comment.