Changed context menu from ViewSource to Back and Forward

This commit is contained in:
RemixDev 2020-11-17 08:48:19 +01:00
parent 0aa00944fd
commit a25298580e
No known key found for this signature in database
GPG key ID: B33962B465BDB51C

View file

@ -67,8 +67,6 @@ class MainWindow(QMainWindow):
def __init__(self, profile, parent):
super().__init__(profile, parent)
actions = [
QWebEnginePage.Back,
QWebEnginePage.Forward,
QWebEnginePage.Stop,
QWebEnginePage.Reload,
QWebEnginePage.ReloadAndBypassCache,
@ -82,7 +80,8 @@ class MainWindow(QMainWindow):
QWebEnginePage.DownloadMediaToDisk,
QWebEnginePage.InspectElement,
QWebEnginePage.RequestClose,
QWebEnginePage.SavePage
QWebEnginePage.SavePage,
QWebEnginePage.ViewSource
]
for a in actions:
self.action(a).setVisible(False)