summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-03 07:46:16 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-03 07:46:16 +0200
commit6e917280380316eba77b1dfa983daf488510e70f (patch)
tree50b31d131b6a4aa7edd6b90e8ed34b4706cf74ac /src/app.c
parentba90c9f0b61419b4d8878276be898cc0012a37a0 (diff)
Mobile: Manage Identities via Settings
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 540c46d8..5b2e88bf 100644
--- a/src/app.c
+++ b/src/app.c
@@ -2667,6 +2667,9 @@ iBool handleCommand_App(const char *cmd) {
2667 if (!urlArg) { 2667 if (!urlArg) {
2668 return iTrue; /* invalid command */ 2668 return iTrue; /* invalid command */
2669 } 2669 }
2670 if (findWidget_App("prefs")) {
2671 postCommand_App("prefs.dismiss");
2672 }
2670 iString *url = collectNewCStr_String(urlArg); 2673 iString *url = collectNewCStr_String(urlArg);
2671 const iBool noProxy = argLabel_Command(cmd, "noproxy") != 0; 2674 const iBool noProxy = argLabel_Command(cmd, "noproxy") != 0;
2672 const iBool fromSidebar = argLabel_Command(cmd, "fromsidebar") != 0; 2675 const iBool fromSidebar = argLabel_Command(cmd, "fromsidebar") != 0;
@@ -2979,6 +2982,11 @@ iBool handleCommand_App(const char *cmd) {
2979 showTabPage_Widget(tabs, tabPage_Widget(tabs, d->prefs.dialogTab)); 2982 showTabPage_Widget(tabs, tabPage_Widget(tabs, d->prefs.dialogTab));
2980 } 2983 }
2981 setCommandHandler_Widget(dlg, handlePrefsCommands_); 2984 setCommandHandler_Widget(dlg, handlePrefsCommands_);
2985 if (argLabel_Command(cmd, "idents") && deviceType_App() != desktop_AppDeviceType) {
2986 iWidget *idPanel = panel_Mobile(dlg, 2);
2987 iWidget *button = findUserData_Widget(findChild_Widget(dlg, "panel.top"), idPanel);
2988 postCommand_Widget(button, "panel.open");
2989 }
2982 } 2990 }
2983 else if (equal_Command(cmd, "navigate.home")) { 2991 else if (equal_Command(cmd, "navigate.home")) {
2984 /* Look for bookmarks tagged "homepage". */ 2992 /* Look for bookmarks tagged "homepage". */