diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-13 14:00:11 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-13 14:00:11 +0200 |
commit | 77bda777c4dbac7bc6be07e6478aae6ba6c5fdef (patch) | |
tree | df1f4aadb3aff550ca1173661fc36e532062bc40 /src | |
parent | 12a1ae8bf615db890f0827a2f691837b2e883340 (diff) |
Mobile: Showing identities via navbar
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/sidebarwidget.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index de61141f..c41a8ad1 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -816,6 +816,10 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev) | |||
816 | else if (equal_Command(cmd, "idents.changed") && d->mode == identities_SidebarMode) { | 816 | else if (equal_Command(cmd, "idents.changed") && d->mode == identities_SidebarMode) { |
817 | updateItems_SidebarWidget_(d); | 817 | updateItems_SidebarWidget_(d); |
818 | } | 818 | } |
819 | else if (deviceType_App() == tablet_AppDeviceType && equal_Command(cmd, "toolbar.showident")) { | ||
820 | postCommandf_App("sidebar.mode arg:%d toggle:1", identities_SidebarMode); | ||
821 | return iTrue; | ||
822 | } | ||
819 | else if (startsWith_CStr(cmd, cstr_String(&d->cmdPrefix))) { | 823 | else if (startsWith_CStr(cmd, cstr_String(&d->cmdPrefix))) { |
820 | if (handleSidebarCommand_SidebarWidget_(d, cmd + size_String(&d->cmdPrefix))) { | 824 | if (handleSidebarCommand_SidebarWidget_(d, cmd + size_String(&d->cmdPrefix))) { |
821 | return iTrue; | 825 | return iTrue; |