- changed how the Editor toolbar button works; added a background for the 'Exit Editor' toolbar button when in Editor

This commit is contained in:
Marius Stanciu
2020-11-25 02:56:10 +02:00
committed by Marius
parent 595fc851a6
commit 1af4ec0474
6 changed files with 53 additions and 24 deletions

View File

@@ -3570,7 +3570,8 @@ class AppGerberEditor(QtCore.QObject):
self.app.ui.grb_editor_menu.setDisabled(False)
self.app.ui.grb_editor_menu.menuAction().setVisible(True)
self.app.ui.update_obj_btn.setEnabled(True)
self.app.ui.editor_exit_btn_ret_action.setVisible(True)
self.app.ui.editor_start_btn.setVisible(False)
self.app.ui.grb_editor_cmenu.setEnabled(True)
self.app.ui.grb_edit_toolbar.setDisabled(False)
@@ -3623,7 +3624,8 @@ class AppGerberEditor(QtCore.QObject):
self.app.ui.grb_editor_menu.setDisabled(True)
self.app.ui.grb_editor_menu.menuAction().setVisible(False)
self.app.ui.update_obj_btn.setEnabled(False)
self.app.ui.editor_exit_btn_ret_action.setVisible(False)
self.app.ui.editor_start_btn.setVisible(True)
# adjust the visibility of some of the canvas context menu
self.app.ui.popmenu_edit.setVisible(True)