summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-06-10 12:03:10 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-06-10 12:03:10 +0300
commit77ecd8cb2fec2c61f37f4c5561b18fad6fe6137a (patch)
treeb2d9087b225ea0bb568c4f80818d0513736a771d /src/app.c
parent99044467586a5a37c796a7786834359dfaf30a2c (diff)
Tight mode for Query/Feeds indicator
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/app.c b/src/app.c
index 71cff954..1ea33dd4 100644
--- a/src/app.c
+++ b/src/app.c
@@ -2503,11 +2503,15 @@ iBool handleCommand_App(const char *cmd) {
2503 return iTrue; 2503 return iTrue;
2504 } 2504 }
2505 else if (equal_Command(cmd, "feeds.update.started")) { 2505 else if (equal_Command(cmd, "feeds.update.started")) {
2506 showCollapsed_Widget(findWidget_App("feeds.progress"), iTrue); 2506 iAnyObject *prog = findWidget_Root("feeds.progress");
2507 const iWidget *navBar = findWidget_Root("navbar");
2508 updateTextAndResizeWidthCStr_LabelWidget(
2509 prog, flags_Widget(navBar) & tight_WidgetFlag ? "\u2605" : "\u2605 ${status.feeds}");
2510 showCollapsed_Widget(prog, iTrue);
2507 return iFalse; 2511 return iFalse;
2508 } 2512 }
2509 else if (equal_Command(cmd, "feeds.update.finished")) { 2513 else if (equal_Command(cmd, "feeds.update.finished")) {
2510 showCollapsed_Widget(findWidget_App("feeds.progress"), iFalse); 2514 showCollapsed_Widget(findWidget_Root("feeds.progress"), iFalse);
2511 refreshFinished_Feeds(); 2515 refreshFinished_Feeds();
2512 postRefresh_App(); 2516 postRefresh_App();
2513 return iFalse; 2517 return iFalse;