Skip to content

Commit

Permalink
When adding page to the sidebar, do not make it active
Browse files Browse the repository at this point in the history
#3231

Signed-off-by: Eran Ifrah <[email protected]>
  • Loading branch information
eranif committed Oct 24, 2024
1 parent 2a2056f commit fd92206
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions LiteEditor/pluginmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,16 +957,16 @@ void PluginManager::BookAddPage(PaneId pane_id, wxWindow* page, const wxString&
{
switch (pane_id) {
case PaneId::BOTTOM_BAR:
clMainFrame::Get()->GetOutputPane()->GetNotebook()->AddPage(page, label, true);
clMainFrame::Get()->GetOutputPane()->GetNotebook()->AddPage(page, label, false);
break;
case PaneId::SIDE_BAR:
clMainFrame::Get()->GetWorkspacePane()->GetNotebook()->AddPage(page, label, bmpname, true);
clMainFrame::Get()->GetWorkspacePane()->GetNotebook()->AddPage(page, label, bmpname, false);
break;
case PaneId::DEBUG_BAR:
clMainFrame::Get()->GetDebuggerPane()->GetNotebook()->AddPage(page, label, true);
clMainFrame::Get()->GetDebuggerPane()->GetNotebook()->AddPage(page, label, false);
break;
case PaneId::SECONDARY_SIDE_BAR:
clMainFrame::Get()->GetSecondarySideBar()->GetNotebook()->AddPage(page, label, bmpname, true);
clMainFrame::Get()->GetSecondarySideBar()->GetNotebook()->AddPage(page, label, bmpname, false);
break;
}
}
Expand Down

0 comments on commit fd92206

Please sign in to comment.