Mac: Black screen after maximizing LBRY and then closing #1200

Closed
opened 2018-03-28 15:28:12 +02:00 by tzarebczan · 2 comments
tzarebczan commented 2018-03-28 15:28:12 +02:00 (Migrated from github.com)

The Issue

On Mac, if you maximize the LBRY app window and then click the close button, you end up with a black screen with no way of bringing LBRY back up. On 0.20.0, the window would just disappear without a way to bring it back up.

Possibly related: https://github.com/electron/electron/issues/6033

Steps to reproduce

  1. Maximize Window
  2. Close the window
  3. Blackscreen

Expected behaviour

Window show close to tray

Actual behaviour

Black screen

System Configuration

  • LBRY Daemon version: 0.19.1
  • LBRY App version: 0.21.2
  • LBRY Installation ID:
  • Operating system: Mac

Anything Else

Screenshots

<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. - App releases: https://github.com/lbryio/lbry-app/releases - Standalone daemon: https://github.com/lbryio/lbry/releases We are also available on live chat at https://chat.lbry.io --> ## The Issue On Mac, if you maximize the LBRY app window and then click the close button, you end up with a black screen with no way of bringing LBRY back up. On 0.20.0, the window would just disappear without a way to bring it back up. Possibly related: https://github.com/electron/electron/issues/6033 ### Steps to reproduce 1. Maximize Window 2. Close the window 3. Blackscreen ### Expected behaviour Window show close to tray ### Actual behaviour Black screen ## System Configuration <!-- For the app, this info is in the About section at the bottom of the Help page. You can include a screenshot instead of typing it out --> <!-- For the daemon, run: curl 'http://localhost:5279' --data '{"method":"version"}' and include the full output --> - LBRY Daemon version: 0.19.1 - LBRY App version: 0.21.2 - LBRY Installation ID: - Operating system: Mac ## Anything Else <!-- Include anything else that does not fit into the above sections --> ## Screenshots <!-- If a screenshot would help explain the bug, please include one or two here -->
miikkatu commented 2018-03-28 16:29:49 +02:00 (Migrated from github.com)

One solution would be to disable the close action (cmd+W) when the window is in fullscreen mode. At least Discord Mac app behaves like this as well.

The code to be changed would be in src/main/createWindow.js in window.on('close'... part.

if (!window.isFullScreen()) { window.hide(); }

However, this would then apply to other OS versions as well.

One solution would be to disable the close action (cmd+W) when the window is in fullscreen mode. At least Discord Mac app behaves like this as well. The code to be changed would be in src/main/createWindow.js in window.on('close'... part. ` if (!window.isFullScreen()) { window.hide(); }` However, this would then apply to other OS versions as well.
miikkatu commented 2018-04-01 14:07:54 +02:00 (Migrated from github.com)

There was a better solution, and a pull request (#1235) was made.

There was a better solution, and a pull request (#1235) was made.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LBRYCommunity/lbry-desktop#1200
No description provided.