Main Window Opens Unmaximized If Closed from System Tray on Transfer completion

Advertisement

war59312
Joined:
Posts:
14
Location:
U.S.A

Main Window Opens Unmaximized If Closed from System Tray on Transfer completion

The Main Window Opens Unmaximized If Closed from System Tray on Transfer completion

That is enabling: "Once Empty > Disconnect Session" and minimizing the window to the system tray while the main window is maximized.

Settings:
  • Preferences > Environment > Uncheck (Disable) "Closing sessions when exiting application" and "Exiting application on operation completion"
  • Preferences > Environment > Window > Check (Enable) "Minimize main window to taskbar status area (system tray)"
I'd expect main window to open up maximized again on next session since the window was maximized the last time before it was minimized to the system tray.
  1. Enable / Disable the options above as listed
  2. Start a large enough background transfer that takes a min or 2
  3. Enable "Once Empty > Disconnect Session"
  4. WinSCP main window should be maximized
  5. Minimize the WinSCP main window
  6. Wait for transfer to complete and for WinSCP to close as expected.
  7. Rerun WinSCP and notice the main window is no longer maximized.

Reply with quote E-mail

Advertisement

Advertisement

martin
Site Admin
martin avatar

I've now followed the instructions from your original post again.
I can still reproduce the problem with WinSCP 6.3.7. But it works for me with WinSCP 6.5.1.
Do you happen to have multiple displays maybe? Does it possibly happen on one of them only? Do you have scaling enabled in Windows?

Reply with quote

war59312
Joined:
Posts:
14
Location:
U.S.A

Yes 2 monitors. No scaling on either. Both 1440p.
Happening on both monitors.
In fact, it's not remember maximized state at all.
That is I can just maximize the session. Disconnect and close winscp with window maximized and then when I reopen a new session window is not maximized anymore.

Reply with quote E-mail

martin
Site Admin
martin avatar

I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
42,065
Location:
Prague, Czechia

Feedback from @war59312:

martin wrote:

I just decided to check to see how WinSCP is launched.
START /MIN /WAIT /D" C:\Apps\WinSCPPortable\App\WinSCP\" WinSCP.exe /ini="C:\Apps\WinSCPPortable\Data\settings\winscp.ini" /log="C:\Apps\WinSCPPortable\Data\settings\winscp.log"
User error. It's the /MIN that is causing this to fail. Wow, no idea why never caused it before, but all good, /MIN doesn't work anyways, that is, it is not started minimized.

So yeah, good to move on, my fault. Working as expected.

Reply with quote

Advertisement

You can post new topics in this forum