Maximized window setting lost if restored from tray after minimizing #1199

Open
opened 2018-03-28 03:06:23 +02:00 by tzarebczan · 3 comments
tzarebczan commented 2018-03-28 03:06:23 +02:00 (Migrated from github.com)

The Issue

This seems to affect Windows only. If you have the LBRY app maximized, then minimize (or minimize + close), then try to restore from tray (double click, or right click > Open LBRY), the window returns to the previous un-maximized window size. This will also happen if you have LBRY minimized in such a state and then open a LBRY url like https://open.lbry.io/test

Steps to reproduce

  1. Maximize LBRY window size
  2. Minimize LBRY
  3. Restore from tray
  4. Notice the window is no longer maximized - it may be full screen or use whatever previous non-maximized you had.

Expected behaviour

Window show be restored to last used state, or maximized in this case

Actual behaviour

Window size is restored

System Configuration

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

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 This seems to affect Windows only. If you have the LBRY app maximized, then minimize (or minimize + close), then try to restore from tray (double click, or right click > Open LBRY), the window returns to the previous un-maximized window size. This will also happen if you have LBRY minimized in such a state and then open a LBRY url like https://open.lbry.io/test ### Steps to reproduce 1. Maximize LBRY window size 2. Minimize LBRY 3. Restore from tray 4. Notice the window is no longer maximized - it may be full screen or use whatever previous non-maximized you had. ### Expected behaviour Window show be restored to last used state, or maximized in this case ### Actual behaviour Window size is restored ## 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: ## 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 -->
QuirkyRobots commented 2018-03-28 03:35:45 +02:00 (Migrated from github.com)

Looks like it's missing these arguments...

isMaximized - Boolean

true if the window state was saved while the window was maximized. undefined if the state has not been saved yet.

isFullScreen - Boolean

true if the window state was saved while the window was in full screen mode. undefined if the state has not been saved yet.

Based off of this useful application...

https://github.com/szwacz/electron-boilerplate

#1057

Looks like it's missing these arguments... `isMaximized` - Boolean `true` if the window state was saved while the window was maximized. `undefined` if the state has not been saved yet. `isFullScreen` - Boolean `true` if the window state was saved while the window was in full screen mode. `undefined` if the state has not been saved yet. Based off of this useful application... https://github.com/szwacz/electron-boilerplate #1057
miikkatu commented 2018-03-28 08:26:53 +02:00 (Migrated from github.com)

I wasn't able to reproduce this on a Mac.

Here's a possibly helpful discussion about an issue with electron-window-state library when using maximized windows: https://github.com/mawie81/electron-window-state/issues/3

I wasn't able to reproduce this on a Mac. Here's a possibly helpful discussion about an issue with electron-window-state library when using maximized windows: https://github.com/mawie81/electron-window-state/issues/3
btzr-io commented 2021-07-27 20:59:21 +02:00 (Migrated from github.com)

Is this still a bug ?

Is this still a bug ?
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#1199
No description provided.