mirror of
https://github.com/frappe/books.git
synced 2024-12-25 12:10:06 +00:00
162b5e983f
- Add window-no-drag to areas that should be clickable - Top left menu in Windows - Enable window transparency only in Mac
12 lines
219 B
JavaScript
12 lines
219 B
JavaScript
const { remote } = require('electron');
|
|
const { Menu } = remote;
|
|
|
|
function openMenu() {
|
|
const menu = Menu.getApplicationMenu();
|
|
menu.popup({ window: remote.getCurrentWindow() });
|
|
}
|
|
|
|
module.exports = {
|
|
openMenu
|
|
};
|