Avoid restoring window sizes with ViziaState

Unless specified otherwise. This avoids some bugs where old, now
incorrect sizes are being recalled.
This commit is contained in:
Robbert van der Helm
2023-02-28 18:50:15 +01:00
parent e621ec9b59
commit e3a923ff3b
6 changed files with 32 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ impl Model for Data {}
// Makes sense to also define this here, makes it a bit easier to keep track of
pub(crate) fn default_state() -> Arc<ViziaState> {
ViziaState::from_size(200, 150)
ViziaState::from_size(200, 150, false)
}
pub(crate) fn create(