summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/sidebarwidget.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 8b0792c8..3e97437e 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -576,6 +576,39 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev)
576 else if (equal_Command(cmd, "idents.changed") && d->mode == identities_SidebarMode) { 576 else if (equal_Command(cmd, "idents.changed") && d->mode == identities_SidebarMode) {
577 updateItems_SidebarWidget_(d); 577 updateItems_SidebarWidget_(d);
578 } 578 }
579 else if (isCommand_Widget(w, ev, "ident.use")) {
580 return iTrue;
581 }
582 else if (isCommand_Widget(w, ev, "ident.showuse")) {
583 return iTrue;
584 }
585 else if (isCommand_Widget(w, ev, "ident.edit")) {
586 return iTrue;
587 }
588 else if (isCommand_Widget(w, ev, "ident.pickicon")) {
589 return iTrue;
590 }
591 else if (isCommand_Widget(w, ev, "ident.reveal")) {
592 return iTrue;
593 }
594 else if (isCommand_Widget(w, ev, "ident.delete")) {
595 iSidebarItem *item = hoverItem_SidebarWidget_(d);
596 if (argLabel_Command(cmd, "confirm")) {
597 makeQuestion_Widget(uiTextCaution_ColorEscape "DELETE IDENTITY",
598 format_CStr("Do you really want to delete the identity\n"
599 uiTextAction_ColorEscape "%s\n"
600 uiText_ColorEscape
601 "including its certificate and private key files?",
602 cstr_String(&item->label)),
603 (const char *[]){ "Cancel",
604 uiTextCaution_ColorEscape
605 "Delete Identity and Files" },
606 (const char *[]){ "cancel", "ident.delete confirm:0" },
607 2);
608 return iTrue;
609 }
610 return iTrue;
611 }
579 else if (equal_Command(cmd, "history.delete")) { 612 else if (equal_Command(cmd, "history.delete")) {
580 const iSidebarItem *item = hoverItem_SidebarWidget_(d); 613 const iSidebarItem *item = hoverItem_SidebarWidget_(d);
581 if (item && !isEmpty_String(&item->url)) { 614 if (item && !isEmpty_String(&item->url)) {