summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-14 16:43:51 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-14 16:43:51 +0200
commit282acaeadd5a9c003b0ce6a55fceb61e915ad43d (patch)
tree756b4007b20ed48a49638940bb4f93b6d5f2c297 /src
parent0ea78766ba6d189cb70c94acc798c4f4c74be935 (diff)
SidebarWidget: Removed unnecessary update
No need to update sidebar items when the Preferences tab changes.
Diffstat (limited to 'src')
-rw-r--r--src/ui/sidebarwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 26473322..fcc1d807 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -1350,7 +1350,7 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev)
1350 } 1350 }
1351 else if (ev->type == SDL_USEREVENT && ev->user.code == command_UserEventCode) { 1351 else if (ev->type == SDL_USEREVENT && ev->user.code == command_UserEventCode) {
1352 const char *cmd = command_UserEvent(ev); 1352 const char *cmd = command_UserEvent(ev);
1353 if (equal_Command(cmd, "tabs.changed") || equal_Command(cmd, "document.changed")) { 1353 if (startsWith_CStr(cmd, "tabs.changed id:doc") || equal_Command(cmd, "document.changed")) {
1354 updateItems_SidebarWidget_(d); 1354 updateItems_SidebarWidget_(d);
1355 scrollOffset_ListWidget(d->list, 0); 1355 scrollOffset_ListWidget(d->list, 0);
1356 } 1356 }