From 9bb0ffbe1bc3a1e2590a3f1e3123e732ec8216da Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 27 Nov 2020 18:51:48 +0200 Subject: SidebarWidget: "Refresh Feeds" button in empty Feeds tab --- src/ui/sidebarwidget.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) { invalidate_ListWidget(d->list); /* Content for a blank tab. */ if (isEmpty_ListWidget(d->list)) { - if (d->mode == identities_SidebarMode) { + if (d->mode == feeds_SidebarMode) { + iWidget *div = makeVDiv_Widget(); + setPadding_Widget(div, 3 * gap_UI, 0, 3 * gap_UI, 2 * gap_UI); + addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ + addChild_Widget(div, iClob(new_LabelWidget("Refresh Feeds", "feeds.refresh"))); + addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ + addChild_Widget(d->blank, iClob(div)); + } + else if (d->mode == identities_SidebarMode) { iWidget *div = makeVDiv_Widget(); setPadding_Widget(div, 3 * gap_UI, 0, 3 * gap_UI, 2 * gap_UI); addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ -- cgit v1.2.3