- the Gerber UI is built only once now so the process is lighter on CPU

- the Gerber apertures marking shapes storage is now built only once because the more are built the more sluggish is the interface
This commit is contained in:
Marius Stanciu
2019-12-29 01:11:24 +02:00
committed by Marius
parent 5032d8e8fe
commit 84cd2143c3
3 changed files with 134 additions and 120 deletions

View File

@@ -3258,6 +3258,10 @@ class App(QtCore.QObject):
# set call source to the Editor we go into
self.call_source = 'grb_editor'
# reset the following variables so the UI is built again after edit
edited_object.ui_build = False
edited_object.build_aperture_storage = False
# make sure that we can't select another object while in Editor Mode:
# self.collection.view.setSelectionMode(QtWidgets.QAbstractItemView.NoSelection)
self.ui.project_frame.setDisabled(True)
@@ -6828,7 +6832,8 @@ class App(QtCore.QObject):
if self.ui.plot_tab_area.tabText(idx) == _("Preferences"):
self.ui.plot_tab_area.tabBar.setTabTextColor(idx, QtGui.QColor('black'))
self.ui.pref_apply_button.setStyleSheet("QPushButton {color: black;}")
# restore the default stylesheet by setting a blank one
self.ui.pref_apply_button.setStyleSheet("")
self.inform.emit('%s' % _("Preferences applied."))