- added 'FlatCAM ' prefix to any detached tab, for easy identification
This commit is contained in:
@@ -642,8 +642,8 @@ class FCDetachableTab(QtWidgets.QTabWidget):
|
|||||||
|
|
||||||
self.old_index = index
|
self.old_index = index
|
||||||
|
|
||||||
# Get the tab content
|
# Get the tab content and add name FlatCAM to the tab so we know on which app is this tab linked
|
||||||
name = self.tabText(index)
|
name = "FlatCAM " + self.tabText(index)
|
||||||
icon = self.tabIcon(index)
|
icon = self.tabIcon(index)
|
||||||
if icon.isNull():
|
if icon.isNull():
|
||||||
icon = self.window().windowIcon()
|
icon = self.window().windowIcon()
|
||||||
@@ -684,6 +684,8 @@ class FCDetachableTab(QtWidgets.QTabWidget):
|
|||||||
|
|
||||||
# Remove the reference
|
# Remove the reference
|
||||||
del self.detachedTabs[name]
|
del self.detachedTabs[name]
|
||||||
|
# make sure that we strip the 'FlatCAM' part of the detached name otherwise the tab name will be too long
|
||||||
|
name = name.partition(' ')[2]
|
||||||
|
|
||||||
# helps in restoring the tab to the same index that it was before was detached
|
# helps in restoring the tab to the same index that it was before was detached
|
||||||
insert_index = self.old_index if self.use_old_index is True else insertAt
|
insert_index = self.old_index if self.use_old_index is True else insertAt
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ CAD program, and create G-Code for Isolation routing.
|
|||||||
14.02.2019
|
14.02.2019
|
||||||
|
|
||||||
- added total travel distance for CNCJob object created from Excellon Object in the CNCJob Selected tab
|
- added total travel distance for CNCJob object created from Excellon Object in the CNCJob Selected tab
|
||||||
|
- added 'FlatCAM ' prefix to any detached tab, for easy identification
|
||||||
|
|
||||||
13.02.2019
|
13.02.2019
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user