mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 07:18:04 +08:00
Properly show document bar on initialization (#535)
* properly show document bar * updated comments
This commit is contained in:
@@ -427,6 +427,10 @@ export default defineComponent({
|
||||
this.documentBarLayout = updateDocumentBarLayout;
|
||||
});
|
||||
this.editor.dispatcher.subscribeJsMessage(TriggerViewportResize, this.viewportResize);
|
||||
|
||||
// TODO(mfish33): Replace with initialization system Issue:#524
|
||||
// Get initial Document Bar
|
||||
this.editor.instance.init_document_bar();
|
||||
},
|
||||
data() {
|
||||
const documentModeEntries: SectionsOfMenuListEntries = [
|
||||
|
||||
@@ -104,6 +104,7 @@ export function createDocumentsState(editor: EditorState, dialogState: DialogSta
|
||||
download(triggerFileDownload.name, triggerFileDownload.document);
|
||||
});
|
||||
|
||||
// TODO(mfish33): Replace with initialization system Issue:#524
|
||||
// Get the initial documents
|
||||
editor.instance.get_open_documents_list();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user