From 8ae84034a88f20f4d1f72a6978835f06709923ec Mon Sep 17 00:00:00 2001 From: Damillora Date: Tue, 4 Jul 2017 00:25:03 +0700 Subject: [PATCH] add file menu for non-mac --- menu.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/menu.js b/menu.js index 4c6adb6..145c922 100644 --- a/menu.js +++ b/menu.js @@ -7,6 +7,13 @@ const options = {userAgent: 'Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6 module.exports = function(win){ const template = [ + { + label: "File", + submenu: [ + {label: 'Preferences',click(){prefman.showPreferences()}}, + ], + visible: process.platform !== 'darwin' + }, { label: 'Edit', submenu: [