UnityHubNative icon indicating copy to clipboard operation
UnityHubNative copied to clipboard

Made save / restore size and position of the main window using wxConfig

Open ManeFunction opened this issue 2 years ago • 3 comments

Added a feature to keep main window's size and position, and not reset it on each launch. Used default wxConfig feature already included in project, so no any new tools here.

Tested on Mac, can't test it on Windows or Linux at the time. Sorry if I did something wrong, C++ is not my main language.

ManeFunction avatar Feb 16 '23 12:02 ManeFunction

Thanks for the PR! I will take a look when I have a chance.

Ravbug avatar Feb 16 '23 14:02 Ravbug

I tested it on both mac and windows, and while this works on mac, it does not work on windows. The call to config->Read on windows always fails. Not sure if this is an issue with wxConfig or with our usage of it here.

Ravbug avatar Feb 16 '23 15:02 Ravbug

Thank you for the test! I'll check this out a bit later if no one helps with this.

ManeFunction avatar Feb 16 '23 16:02 ManeFunction