From 1fd663a93c670988ec7faecb13da3bc5e2dab82f Mon Sep 17 00:00:00 2001 From: rhysd Date: Wed, 19 Apr 2017 18:07:12 +0900 Subject: [PATCH] do not hide app menu on Windows --- README.md | 2 +- main/window.ts | 4 ++-- renderer/index.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 306ab6a..c6670d1 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ You need to fill up `"name"` and `"host"` keys in first element of `"accounts"`. Then please try to start app again. Usage is the same as web client on mobile devices. Some shortcuts are available by default (please see below 'Customization' section). -Supported platforms are macOS (confirmed with 10.12), Linux (hopefully) and Windows (hopefully). +Supported platforms are macOS (confirmed with 10.12), Linux (hopefully) and Windows (confirmed with Windows 8.1). ## Customization diff --git a/main/window.ts b/main/window.ts index 5da36d6..7088eef 100644 --- a/main/window.ts +++ b/main/window.ts @@ -100,7 +100,7 @@ function startNormalWindow(account: Account, config: Config): Promise { icon: APP_ICON, show: false, useContentSize: true, - autoHideMenuBar: true, + autoHideMenuBar: false, webPreferences: { nodeIntegration: false, sandbox: true, @@ -152,7 +152,7 @@ function startMenuBar(account: Account, config: Config, bar: Menubar.MenubarApp alwaysOnTop: IS_DEBUG || !!config.always_on_top, tooltip: 'Mstdn', useContentSize: true, - autoHideMenuBar: true, + autoHideMenuBar: false, show: false, showDockIcon: true, webPreferences: { diff --git a/renderer/index.ts b/renderer/index.ts index 45aa95c..c58f33a 100644 --- a/renderer/index.ts +++ b/renderer/index.ts @@ -78,4 +78,5 @@ let config: Config | null = null; Ipc.on('mstdn:config', (c: Config, a: Account) => { config = c; setupKeybinds(config.keymaps, a.host); + document.title = `${document.title} @${a.name}@${a.host}`; });