mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 16:13:37 +00:00
pdf-viewer: Hide menubar in pdf window.
We don't want to show the menubar in a pdf window so setting it to null.
This commit is contained in:
@@ -217,6 +217,9 @@ app.on('ready', () => {
|
||||
}
|
||||
});
|
||||
pdfWindow.loadURL(url);
|
||||
|
||||
// We don't want to have the menu bar in pdf window
|
||||
pdfWindow.setMenu(null);
|
||||
});
|
||||
|
||||
// Reload full app not just webview, useful in debugging
|
||||
|
Reference in New Issue
Block a user