editor now refreshes when opened

This commit is contained in:
Max Robinson
2021-11-28 16:23:37 -06:00
parent 299213ad68
commit 12ca20cbf7
3 changed files with 17 additions and 7 deletions

View File

@@ -143,9 +143,12 @@ class ControlPanel {
$(tab).css('display', 'grid');
self.engine.organism_editor.is_active = (this.id == 'editor');
self.stats_panel.stopAutoRender();
if (this.id == 'stats') {
if (this.id === 'stats') {
self.stats_panel.startAutoRender();
}
else if (this.id === 'editor') {
self.editor_controller.refreshDetailsPanel();
}
self.tab_id = this.id;
});
}