mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 19:51:26 -05:00
Give a document opened through the session its view when the canvas shows it
This commit is contained in:
@@ -96,6 +96,8 @@ pub(crate) fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
home(app, ui, full);
|
||||
return;
|
||||
}
|
||||
// A document opened straight through the session has no view yet.
|
||||
app.sync_views();
|
||||
let Some(win) = doc_windows::current(app).filter(|_| app.session.active().is_some()) else {
|
||||
// No document and Show The Home Screen When No Documents Are Open off: an empty window.
|
||||
let env = Env::of(ui);
|
||||
|
||||
Reference in New Issue
Block a user