Properly show document bar on initialization (#535)

* properly show document bar

* updated comments
This commit is contained in:
mfish33
2022-02-11 11:32:10 -08:00
committed by Keavon Chambers
parent e22030ffb2
commit 6ff7c22d1d
4 changed files with 12 additions and 1 deletions

View File

@@ -525,6 +525,12 @@ impl JsEditorHandle {
let message = DocumentMessage::ZoomCanvasToFitAll;
self.dispatch(message);
}
// TODO(mfish33): Replace with initialization system Issue:#524
pub fn init_document_bar(&self) {
let message = PortfolioMessage::UpdateDocumentBar;
self.dispatch(message)
}
}
// Needed to make JsEditorHandle functions pub to rust. Do not fully