Skip to content

Commit

Permalink
mainwin: Preserve Insert toolbar visibility when in Insert mode
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz committed Nov 19, 2023
1 parent b19a1d4 commit 46322c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ui/mainwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4906,6 +4906,12 @@ void CAMainWin::updateContextToolBar()
*/
void CAMainWin::updateInsertToolBar()
{
if (mode() == InsertMode) {
// Do not change any insert toolbar layout when in Insert mode. Otherwise the user couldn't leave the Insert mode,
// because the specific toggle button may be evicted.
return;
}

if (currentSheet()) {
uiNewContext->setVisible(true);
uiInsertToolBar->show();
Expand Down

0 comments on commit 46322c6

Please sign in to comment.