slowscript / warpinator-windows

An unofficial implementation of Warpinator for Windows
GNU General Public License v3.0
197 stars 10 forks source link

start minimized doesn't work #29

Closed xboxones1 closed 1 year ago

xboxones1 commented 1 year ago

start minimized doesn't work on Windows 11, the program loads as usual, the option does not affect the behavior of the program in any way. I checked it on a virtual machine, I thought there might be something wrong with my OS, but it doesn’t work there either

slowscript commented 1 year ago

Do you have "Run in system tray" ticked as well? It looks like there is a bug that allows you to tick "Start minimized" even when "Run in system tray" is off. This will be fixed in the next release. With both of these checked it works fine for me.

xboxones1 commented 1 year ago

I reset Windows settings to default and minimized worked. As for the tick, I didn’t have such a bug. Without the "Run in system tray" checkbox, cannot select "Start minimized"

xboxones1 commented 1 year ago

I installed Windows 11 23H2, installed Warpinator and start minimized doesn't work again. I tried resetting the settings again and this time it didn’t help. I read on the Internet and they write that minimizing the program will not work correctly in Form1_Load since minimizing is triggered before the form loads. Recommend on what to put in Form1_Shown

slowscript commented 1 year ago

So I've put the Hide() call into Form1_Shown as you suggested. Does this fix your issue? Also please check that "Start minimized" is still enabled in settings. There was a bug that caused the settings to reset to default every time Warpinator was updated.

warpinator-debug.zip

xboxones1 commented 1 year ago

Yes, this fixed the problem. Thank's