- SolderPaste Tool - the GCode Viewer will open a AppText Editor Tab with Plain Text

- GCode Editor - added an Exit action to the context menu in the GCode Editor Tab
This commit is contained in:
Marius Stanciu
2020-12-13 23:31:46 +02:00
committed by Marius
parent 466e2d6b81
commit 27709b11eb
4 changed files with 84 additions and 39 deletions

View File

@@ -998,10 +998,10 @@ class SolderPaste(AppTool):
"""
time_str = "{:%A, %d %B %Y at %H:%M}".format(datetime.now())
self.text_editor_tab = AppTextEditor(app=self.app)
self.text_editor_tab = AppTextEditor(app=self.app, plain_text=True)
# add the tab if it was closed
self.app.ui.plot_tab_area.addTab(self.text_editor_tab, _("SP GCode Editor"))
self.app.ui.plot_tab_area.addTab(self.text_editor_tab, _("GCode Editor"))
self.text_editor_tab.setObjectName('solderpaste_gcode_editor_tab')
# Switch plot_area to CNCJob tab