Просмотр исходного кода

- fixed the Panelize Tool so the box object stay as selected on new objects are loaded; any selection shape on canvas is deleted when clicking Panelize

Marius Stanciu 5 лет назад
Родитель
Сommit
f0fba5ccd1
2 измененных файлов с 5 добавлено и 1 удалено
  1. 1 0
      CHANGELOG.md
  2. 4 1
      appTools/ToolPanelize.py

+ 1 - 0
CHANGELOG.md

@@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta
 
 - updated the Panelize Tool to save the source code for the panelized Excellon objects so it can be saved from the Save project tab context menu entry
 - updated the Panelize Tool to save the source code for the panelized Geometry objects as DXF file
+- fixed the Panelize Tool so the box object stay as selected on new objects are loaded; any selection shape on canvas is deleted when clicking Panelize
 
 6.07.2020
 

+ 4 - 1
appTools/ToolPanelize.py

@@ -180,6 +180,9 @@ class Panelize(AppTool):
     def on_panelize(self):
         name = self.ui.object_combo.currentText()
 
+        # delete any selection box
+        self.app.delete_selection_shape()
+
         # Get source object to be panelized.
         try:
             panel_source_obj = self.app.collection.get_by_name(str(name))
@@ -729,7 +732,7 @@ class PanelizeUI:
         self.box_combo = FCComboBox()
         self.box_combo.setModel(self.app.collection)
         self.box_combo.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
-        self.box_combo.is_last = True
+        # self.box_combo.is_last = True
 
         self.box_combo.setToolTip(
             _("The actual object that is used as container for the\n "