diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-10 12:03:10 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-10 12:03:10 +0300 |
commit | 77ecd8cb2fec2c61f37f4c5561b18fad6fe6137a (patch) | |
tree | b2d9087b225ea0bb568c4f80818d0513736a771d /src/app.c | |
parent | 99044467586a5a37c796a7786834359dfaf30a2c (diff) |
Tight mode for Query/Feeds indicator
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |