From a4313f358ee56adee5c98bfc0a97c9fdba3cc7cf Mon Sep 17 00:00:00 2001 From: spanner888 <349015+spanner888@users.noreply.github.com> Date: Wed, 11 Sep 2024 02:20:35 +1000 Subject: [PATCH] save after del, new, add (#16230) Co-authored-by: spanner888 --- src/Mod/CAM/Path/Tool/Gui/BitLibrary.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/CAM/Path/Tool/Gui/BitLibrary.py b/src/Mod/CAM/Path/Tool/Gui/BitLibrary.py index ff635f6b79..9ea2d355dc 100644 --- a/src/Mod/CAM/Path/Tool/Gui/BitLibrary.py +++ b/src/Mod/CAM/Path/Tool/Gui/BitLibrary.py @@ -593,6 +593,7 @@ class ToolBitLibrary(object): # add it to the model self.factory.new_tool(self.toolModel, fullpath) + self.librarySave() def toolBitExisting(self): @@ -608,12 +609,14 @@ class ToolBitLibrary(object): fullpath = "{}{}{}.fctb".format(loc, os.path.sep, fname) self.factory.new_tool(self.toolModel, fullpath) + self.librarySave() def toolDelete(self): Path.Log.track() selectedRows = set([index.row() for index in self.toolTableView.selectedIndexes()]) for row in sorted(list(selectedRows), key=lambda r: -r): self.toolModel.removeRows(row, 1) + self.librarySave() def toolSelect(self, selected, deselected): sel = len(self.toolTableView.selectedIndexes()) > 0