summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-15 12:40:20 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-15 19:03:41 +0200
commit318de08090d9110106cb1cc4c01d8572e70d0d5c (patch)
tree12d89c3eac22c9359c4c5095d7ac9527e8d4f60b /src
parent9796d312f488a23f64b025b72993a6e879adcb52 (diff)
SidebarWidget: Command to update contents
Diffstat (limited to 'src')
-rw-r--r--src/ui/sidebarwidget.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 36c35b2e..22170f38 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -409,7 +409,7 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) {
409 iClob(new_LabelWidget("See " uiTextStrong_ColorEscape "Help" restore_ColorEscape 409 iClob(new_LabelWidget("See " uiTextStrong_ColorEscape "Help" restore_ColorEscape
410 " for more information about TLS client certificates.", 410 " for more information about TLS client certificates.",
411 "!open newtab:1 gotoheading:1.6 url:about:help")), 411 "!open newtab:1 gotoheading:1.6 url:about:help")),
412 frameless_WidgetFlag | fixedHeight_WidgetFlag | wrapText_WidgetFlag), 412 frameless_WidgetFlag | fixedHeight_WidgetFlag | wrapText_WidgetFlag),
413 uiBackgroundSidebar_ColorId); 413 uiBackgroundSidebar_ColorId);
414 addChild_Widget(d->blank, iClob(div)); 414 addChild_Widget(d->blank, iClob(div));
415 } 415 }
@@ -808,8 +808,9 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev)
808 updateItems_SidebarWidget_(d); 808 updateItems_SidebarWidget_(d);
809 scrollOffset_ListWidget(d->list, 0); 809 scrollOffset_ListWidget(d->list, 0);
810 } 810 }
811 else if (equal_Command(cmd, "visited.changed") && 811 else if (equal_Command(cmd, "sidebar.update") ||
812 (d->mode == history_SidebarMode || d->mode == feeds_SidebarMode)) { 812 (equal_Command(cmd, "visited.changed") &&
813 (d->mode == history_SidebarMode || d->mode == feeds_SidebarMode))) {
813 updateItems_SidebarWidget_(d); 814 updateItems_SidebarWidget_(d);
814 } 815 }
815 else if (equal_Command(cmd, "bookmarks.changed") && (d->mode == bookmarks_SidebarMode || 816 else if (equal_Command(cmd, "bookmarks.changed") && (d->mode == bookmarks_SidebarMode ||