From efc1a7c3e68de3c054c9356369b400d03f71b366 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Mon, 24 Aug 2020 12:32:48 +0200 Subject: [PATCH] Added back dummy menu item View Source It doesn't do anything, but it will show at least an item in the context menu Related to https://codeberg.org/RemixDev/deemix-webui/issues/31 --- deemix-pyweb.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/deemix-pyweb.py b/deemix-pyweb.py index 5b05a0a..cd08090 100644 --- a/deemix-pyweb.py +++ b/deemix-pyweb.py @@ -65,7 +65,24 @@ class MainWindow(QMainWindow): class MainWebpage(QWebEnginePage): def __init__(self, parent): super().__init__(parent) - actions = [0,1,2,3,10,11,12,13,14,31,16,19,25,26,28,30,32] + actions = [ + QWebEnginePage.Back, + QWebEnginePage.Forward, + QWebEnginePage.Stop, + QWebEnginePage.Reload, + QWebEnginePage.ReloadAndBypassCache, + QWebEnginePage.PasteAndMatchStyle, + QWebEnginePage.OpenLinkInThisWindow, + QWebEnginePage.OpenLinkInNewWindow, + QWebEnginePage.OpenLinkInNewTab, + QWebEnginePage.OpenLinkInNewBackgroundTab, + QWebEnginePage.DownloadLinkToDisk, + QWebEnginePage.DownloadImageToDisk, + QWebEnginePage.DownloadMediaToDisk, + QWebEnginePage.InspectElement, + QWebEnginePage.RequestClose, + QWebEnginePage.SavePage + ] for a in actions: self.action(a).setVisible(False)