From 77bda777c4dbac7bc6be07e6478aae6ba6c5fdef Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 13 Mar 2021 14:00:11 +0200 Subject: Mobile: Showing identities via navbar --- src/ui/sidebarwidget.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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) else if (equal_Command(cmd, "idents.changed") && d->mode == identities_SidebarMode) { updateItems_SidebarWidget_(d); } + else if (deviceType_App() == tablet_AppDeviceType && equal_Command(cmd, "toolbar.showident")) { + postCommandf_App("sidebar.mode arg:%d toggle:1", identities_SidebarMode); + return iTrue; + } else if (startsWith_CStr(cmd, cstr_String(&d->cmdPrefix))) { if (handleSidebarCommand_SidebarWidget_(d, cmd + size_String(&d->cmdPrefix))) { return iTrue; -- cgit v1.2.3