1
0
mirror of https://github.com/rhysd/Mstdn.git synced 2025-01-21 20:52:11 +01:00

Rename config.menubar to config.hide_menu

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
This commit is contained in:
Gergely Nagy 2017-04-19 17:45:45 +02:00
parent f67c6f15e8
commit 2f12c63d93
3 changed files with 6 additions and 6 deletions

View File

@ -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`

View File

@ -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: [{

View File

@ -105,7 +105,7 @@ function startNormalWindow(account: Account, config: Config): Promise<Window> {
icon: APP_ICON,
show: false,
useContentSize: true,
autoHideMenuBar: !config.menubar,
autoHideMenuBar: config.hide_menu,
webPreferences: {
nodeIntegration: false,
sandbox: true,