mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-28 02:16:16 +00:00
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
This commit is contained in:
parent
13b3d90abc
commit
efc1a7c3e6
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue