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 |
PersistentWindowSettingsconstructors and move default initialization in class.PersistentWindowSettingsonly once inIngameWindow(assumes pointer stability). This will make more of a difference when more settings are saved in these PRs:Resize()from the constructor.