- minor string fix; removed the 'Close' menu entry on the context menu for the TCL Shell
This commit is contained in:
@@ -3076,15 +3076,15 @@ class _BrowserTextEdit(QTextEdit):
|
||||
self.menu.addAction(save_action)
|
||||
save_action.triggered.connect(lambda: self.save_log(app=self.app))
|
||||
|
||||
clear_action = QAction(_("Clear"), self)
|
||||
clear_action = QAction(_("Clear All"), self)
|
||||
clear_action.setShortcut(QKeySequence(Qt.Key_Delete)) # it's not working, the shortcut
|
||||
self.menu.addAction(clear_action)
|
||||
clear_action.triggered.connect(self.clear)
|
||||
|
||||
if self.app:
|
||||
close_action = QAction(_("Close"), self)
|
||||
self.menu.addAction(close_action)
|
||||
close_action.triggered.connect(lambda: self.app.ui.shell_dock.hide())
|
||||
# if self.app:
|
||||
# close_action = QAction(_("Close"), self)
|
||||
# self.menu.addAction(close_action)
|
||||
# close_action.triggered.connect(lambda: self.app.ui.shell_dock.hide())
|
||||
|
||||
self.menu.exec_(event.globalPos())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user