typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 56 forks source link

Typora does not remember window state on startup #6000

Open GreatestFool opened 8 months ago

GreatestFool commented 8 months ago

Describe the bug Previous versions of Typora has allowed the window to remember its state; whether it has been maximized or is in full-screen. Latest does not.

To Reproduce

  1. Update to the latest version.
  2. Open the program.
  3. Toggle full-screen.
  4. Close the program.
  5. Re-open the program.

Expected behavior On completing step 5, it should start in full-screen. Or just maximized, if you did that instead on step 3.

Desktop (please complete the following information):

Typora Version 1.8.10

Additional context This hasn't been an issue before, for me personally, and still worked up until the moment I updated Typora just now. Though I've seen #1795 and #4932 which are older, and not so dissimilar, so apparently nothing new.

Candysad commented 8 months ago

my OS: Windows Typora Version: 1.8.10 Resolutions of screens:

The window of Typora is now fixed to a certain size for each time you open it .

This happended on Windows and the behaviors vary in different resolutions and number of screens.

It's about to be almost full-screen on 1080p screens. And it could be oversize (even bigger than the screen) on a 2k screen with another 1080p screen connected to PC, but almost full-screen on a 2k screen with ohther 2 1080p screens connected.

GreatestFool commented 8 months ago

I can expand on this and say that window size varies when opening. I've had it take up some 1/4th of a 4K screen, as well as almost the entirety of it.

Should it be so that the application will not remember its window state going forward, I'd greatly appreciate there being a CLI flag that can be applied to make it start in full-screen. It's a stop-gap, I prefer the old way—if I am to describe it as such—but I think that's fine too.

thurrott commented 3 months ago

It's 2024, and this is still broken. Typora does not remember its size or window state (maximized/windowed) on launch in Windows 11.

frigvid commented 3 months ago

It's 2024, and this is still broken. [ . . . ]

I mean, it was opened in 2024, so that's perhaps not the best use of that phrase I've seen.

Though, otherwise, I agree. I'd really like to see this fixed or re-implemented.

thurrott commented 3 months ago

It's 2024, and this is still broken. [ . . . ]

I mean, it was opened in 2024, so that's perhaps not the best use of that phrase I've seen.

Though, otherwise, I agree. I'd really like to see this fixed or re-implemented.

This same bug has been reported over several years.

frigvid commented 3 months ago

Fair. I Forgot the older issues.