- added 'FlatCAM ' prefix to any detached tab, for easy identification

This commit is contained in:
Marius Stanciu
2019-02-14 13:50:58 +02:00
committed by Marius
parent 3a05ebaffb
commit a879803f97
2 changed files with 5 additions and 2 deletions

View File

@@ -642,8 +642,8 @@ class FCDetachableTab(QtWidgets.QTabWidget):
self.old_index = index
# Get the tab content
name = self.tabText(index)
# Get the tab content and add name FlatCAM to the tab so we know on which app is this tab linked
name = "FlatCAM " + self.tabText(index)
icon = self.tabIcon(index)
if icon.isNull():
icon = self.window().windowIcon()
@@ -684,6 +684,8 @@ class FCDetachableTab(QtWidgets.QTabWidget):
# Remove the reference
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
insert_index = self.old_index if self.use_old_index is True else insertAt

View File

@@ -12,6 +12,7 @@ CAD program, and create G-Code for Isolation routing.
14.02.2019
- 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