diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-10 06:53:55 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-10 06:53:55 +0300 |
commit | ef30731ff7ecc0687ebf4b85db89dc83a4748266 (patch) | |
tree | 6d031da3f2c8e342cf209980827fe92b36079ca0 /src/app.c | |
parent | cfcd6bd672829edfbb325e3d264570c034ccc0f1 (diff) |
Tab bar is hidden when there is a single tab
Needed some fixes in the widget arrangement behavior.
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -394,6 +394,7 @@ iBool handleCommand_App(const char *cmd) { | |||
394 | } | 394 | } |
395 | else if (equal_Command(cmd, "tabs.new")) { | 395 | else if (equal_Command(cmd, "tabs.new")) { |
396 | iWidget *tabs = findWidget_App("doctabs"); | 396 | iWidget *tabs = findWidget_App("doctabs"); |
397 | setFlags_Widget(tabs, hidden_WidgetFlag, iFalse); | ||
397 | iWidget *newTabButton = findChild_Widget(tabs, "newtab"); | 398 | iWidget *newTabButton = findChild_Widget(tabs, "newtab"); |
398 | removeChild_Widget(newTabButton->parent, newTabButton); | 399 | removeChild_Widget(newTabButton->parent, newTabButton); |
399 | iDocumentWidget *newDoc; | 400 | iDocumentWidget *newDoc; |
@@ -410,7 +411,7 @@ iBool handleCommand_App(const char *cmd) { | |||
410 | postCommandf_App("tabs.switch page:%p", newDoc); | 411 | postCommandf_App("tabs.switch page:%p", newDoc); |
411 | if (!isDuplicate) { | 412 | if (!isDuplicate) { |
412 | postCommand_App("navigate.home"); | 413 | postCommand_App("navigate.home"); |
413 | } | 414 | } |
414 | arrange_Widget(tabs); | 415 | arrange_Widget(tabs); |
415 | refresh_Widget(tabs); | 416 | refresh_Widget(tabs); |
416 | return iTrue; | 417 | return iTrue; |