Ensure the first sidebar tab is shown when editor loads

This commit is contained in:
Nick O'Leary 2021-01-28 23:42:32 +00:00
parent 3a0074d96e
commit fa6e0c8964
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 6 additions and 0 deletions

View File

@ -516,6 +516,9 @@ var RED = (function() {
$(".red-ui-header-toolbar").show();
RED.sidebar.show(":first");
setTimeout(function() {
loader.end();
},100);

View File

@ -195,6 +195,9 @@ RED.sidebar = (function() {
}
function showSidebar(id) {
if (id === ":first") {
id = RED.settings.get("editor.sidebar.order",["info", "help", "version-control", "debug"])[0]
}
if (id) {
if (!containsTab(id)) {
sidebar_tabs.addTab(knownTabs[id]);