From 2f12c63d93b253e3565958339cb28120da371d08 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 19 Apr 2017 17:45:45 +0200 Subject: [PATCH] Rename config.menubar to config.hide_menu Signed-off-by: Gergely Nagy --- README.md | 6 +++--- main/config.ts | 4 ++-- main/window.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 21d3fdf..5a6b5bf 100644 --- a/README.md +++ b/README.md @@ -81,11 +81,11 @@ When this value is set to `true`, application will be launched as a normal windo If menu bar behavior does not work for you, please use set this value to `true` to avoid it. Default value is `false` on macOS or Linux, `true` on Windows because window position is broken in some version of Windows. -### `menubar` +### `hide_menu` When this value is set to `true`, the application will be launched with the -menubar visible, assuming `normal_window` is also true. When set to `false`, the -menubar will be hidden on launch. Default value is `true`. +menubar hidden, assuming `normal_window` is also true. When set to `false`, the +menubar will be visible on launch. Default value is `false`. ### `zoom_factor` diff --git a/main/config.ts b/main/config.ts index d72116c..63ae8d9 100644 --- a/main/config.ts +++ b/main/config.ts @@ -13,7 +13,7 @@ export interface Config { hot_key: string; icon_color: string; always_on_top: boolean; - menubar: boolean; + hide_menu: boolean; normal_window: boolean; zoom_factor: number; accounts: Account[]; @@ -28,7 +28,7 @@ function makeDefaultConfig(): Config { hot_key: 'CmdOrCtrl+Shift+S', icon_color: IsDarkMode ? 'white' : 'black', always_on_top: false, - menubar: true, + hide_menu: false, normal_window: menubarBroken, zoom_factor: 0.9, accounts: [{ diff --git a/main/window.ts b/main/window.ts index 3e31f76..40392cc 100644 --- a/main/window.ts +++ b/main/window.ts @@ -105,7 +105,7 @@ function startNormalWindow(account: Account, config: Config): Promise { icon: APP_ICON, show: false, useContentSize: true, - autoHideMenuBar: !config.menubar, + autoHideMenuBar: config.hide_menu, webPreferences: { nodeIntegration: false, sandbox: true,