- in Preferences General, Gerber, Geometry, Excellon, CNCJob sections made all the input fields of type SpinBox (where possible)

- updated the Distance Tool utility geometry color to adapt to the dark theme canvas
This commit is contained in:
Marius Stanciu
2019-10-08 05:25:27 +03:00
committed by Marius
parent 24723509f8
commit fbf982ab8e
4 changed files with 82 additions and 99 deletions

View File

@@ -1538,7 +1538,7 @@ class FCDetachableTab(QtWidgets.QTabWidget):
class FCDetachableTab2(FCDetachableTab):
tab_closed_signal = pyqtSignal()
tab_closed_signal = pyqtSignal(object)
def __init__(self, protect=None, protect_by_name=None, parent=None):
super(FCDetachableTab2, self).__init__(protect=protect, protect_by_name=protect_by_name, parent=parent)
@@ -1552,9 +1552,7 @@ class FCDetachableTab2(FCDetachableTab):
"""
idx = self.currentIndex()
# emit the signal only if the name is the one we want; the name should be a parameter somehow
if self.tabText(idx) == _("Preferences"):
self.tab_closed_signal.emit()
self.tab_closed_signal.emit(self.tabText(idx))
self.removeTab(currentIndex)