summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index b8ce413b..4b39383c 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1491,6 +1491,7 @@ void setSplitMode_MainWindow(iMainWindow *d, int splitFlags) {
1491 } 1491 }
1492 /* The last child is the [+] button for adding a tab. */ 1492 /* The last child is the [+] button for adding a tab. */
1493 moveTabButtonToEnd_Widget(findChild_Widget(docTabs, "newtab")); 1493 moveTabButtonToEnd_Widget(findChild_Widget(docTabs, "newtab"));
1494 setFlags_Widget(findWidget_Root("navbar.unsplit"), hidden_WidgetFlag, iTrue);
1494 iRelease(tabs); 1495 iRelease(tabs);
1495 postCommandf_App("tabs.switch id:%s", cstr_String(id_Widget(constAs_Widget(curPage)))); 1496 postCommandf_App("tabs.switch id:%s", cstr_String(id_Widget(constAs_Widget(curPage))));
1496 } 1497 }
@@ -1540,6 +1541,11 @@ void setSplitMode_MainWindow(iMainWindow *d, int splitFlags) {
1540 postCommand_Root(w->roots[newRootIndex], "navigate.home"); 1541 postCommand_Root(w->roots[newRootIndex], "navigate.home");
1541 } 1542 }
1542 } 1543 }
1544 /* Show unsplit buttons. */
1545 for (int i = 0; i < 2; i++) {
1546 setFlags_Widget(findChild_Widget(w->roots[i]->widget, "navbar.unsplit"),
1547 hidden_WidgetFlag, iFalse);
1548 }
1543 setCurrent_Root(NULL); 1549 setCurrent_Root(NULL);
1544 } 1550 }
1545 d->splitMode = splitMode; 1551 d->splitMode = splitMode;