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