diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-27 18:51:48 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-27 18:51:48 +0200 |
commit | 9bb0ffbe1bc3a1e2590a3f1e3123e732ec8216da (patch) | |
tree | bd30ebd27b48e58c54715dbdb85025eedf8619c7 /src/ui/sidebarwidget.c | |
parent | fb3d35b60463d3e96dca2712eb26e99d85ea1968 (diff) |
SidebarWidget: "Refresh Feeds" button in empty Feeds tab
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 8bbbbcd1..b312f41a 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -327,7 +327,15 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) { | |||
327 | invalidate_ListWidget(d->list); | 327 | invalidate_ListWidget(d->list); |
328 | /* Content for a blank tab. */ | 328 | /* Content for a blank tab. */ |
329 | if (isEmpty_ListWidget(d->list)) { | 329 | if (isEmpty_ListWidget(d->list)) { |
330 | if (d->mode == identities_SidebarMode) { | 330 | if (d->mode == feeds_SidebarMode) { |
331 | iWidget *div = makeVDiv_Widget(); | ||
332 | setPadding_Widget(div, 3 * gap_UI, 0, 3 * gap_UI, 2 * gap_UI); | ||
333 | addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ | ||
334 | addChild_Widget(div, iClob(new_LabelWidget("Refresh Feeds", "feeds.refresh"))); | ||
335 | addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ | ||
336 | addChild_Widget(d->blank, iClob(div)); | ||
337 | } | ||
338 | else if (d->mode == identities_SidebarMode) { | ||
331 | iWidget *div = makeVDiv_Widget(); | 339 | iWidget *div = makeVDiv_Widget(); |
332 | setPadding_Widget(div, 3 * gap_UI, 0, 3 * gap_UI, 2 * gap_UI); | 340 | setPadding_Widget(div, 3 * gap_UI, 0, 3 * gap_UI, 2 * gap_UI); |
333 | addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ | 341 | addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ |