-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor PersistentWindowSettings and persist window minimized state #1609
Refactor PersistentWindowSettings and persist window minimized state #1609
Conversation
Any chance you can come up with a test especially for the minimized state restore? Should be enough to use a dummy window with a CGI ID matching an "enabled" window Just want to be sure we'd catch e.g. the virtual call bug in the ctor you found. |
d354f9f
to
67b6ab0
Compare
Done. Let me know if this is what you had in mind.
That's rather difficult to test. I couldn't call |
67b6ab0
to
a386dd1
Compare
* Remove constructors. * Set defaults in-class.
Don't call unqualified (i.e., assumed to be derived) Resize() function from constructor.
Head branch was pushed to by a user without write access
a386dd1
to
0578d39
Compare
@Flamefire Rebased and resolved the one-line merge conflict in |
PersistentWindowSettings
constructors and move default initialization in class.PersistentWindowSettings
only once inIngameWindow
(assumes pointer stability). This will make more of a difference when more settings are saved in these PRs:Resize()
from the constructor.