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

- added a change that when a double click is performed in a object on canvas resulting in a selection, if the notebook is hidden then it will be displayed

Marius Stanciu 7 лет назад
Родитель
Сommit
546f643035
2 измененных файлов с 7 добавлено и 1 удалено
  1. 3 1
      FlatCAMApp.py
  2. 4 0
      README.md

+ 3 - 1
FlatCAMApp.py

@@ -4583,7 +4583,6 @@ class App(QtCore.QObject):
 
     def on_double_click_over_plot(self, event):
         self.doubleclick = True
-        # make double click work only for the LMB
 
     def on_mouse_move_over_plot(self, event, origin_click=None):
         """
@@ -4686,6 +4685,9 @@ class App(QtCore.QObject):
                     self.doubleclick = False
                     if self.collection.get_selected():
                         self.ui.notebook.setCurrentWidget(self.ui.selected_tab)
+                        if self.ui.splitter.sizes()[0] == 0:
+                            self.ui.splitter.setSizes([1, 1])
+
                         # delete the selection shape(S) as it may be in the way
                         self.delete_selection_shape()
 

+ 4 - 0
README.md

@@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
 
 =================================================
 
+28.02.2019
+
+- added a change that when a double click is performed in a object on canvas resulting in a selection, if the notebook is hidden then it will be displayed
+
 27.02.2019
 
 - made the Custom ToolChange Text area in CNCJob Selected Tab depend on the status of the ToolChange Enable Checkbox even in the init stage.