diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-29 14:11:46 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-29 14:11:46 +0200 |
commit | 68444017d86c8912ecc26542046b005b2bad12eb (patch) | |
tree | 82809f02fe28dd18db1db23211bcc173e4ccd5e8 /src/app.c | |
parent | a3d56f967643ac77847dcc1669eca5144d736056 (diff) |
SidebarWidget: Improving blank Identities tab
If there are no identities, the Identities tab now shows a button for creating one, and a link to the Help documentation.
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1018,6 +1018,12 @@ iBool handleCommand_App(const char *cmd) { | |||
1018 | setInitialScroll_DocumentWidget(doc, argfLabel_Command(cmd, "scroll")); | 1018 | setInitialScroll_DocumentWidget(doc, argfLabel_Command(cmd, "scroll")); |
1019 | setRedirectCount_DocumentWidget(doc, redirectCount); | 1019 | setRedirectCount_DocumentWidget(doc, redirectCount); |
1020 | setUrlFromCache_DocumentWidget(doc, url, isHistory); | 1020 | setUrlFromCache_DocumentWidget(doc, url, isHistory); |
1021 | /* Optionally, jump to a text in the document. This will only work if the document | ||
1022 | is already available, e.g., it's from "about:" or restored from cache. */ | ||
1023 | const iRangecc gotoHeading = range_Command(cmd, "gotoheading"); | ||
1024 | if (gotoHeading.start) { | ||
1025 | postCommandf_App("document.goto heading:%s", cstr_Rangecc(gotoHeading)); | ||
1026 | } | ||
1021 | } | 1027 | } |
1022 | else if (equal_Command(cmd, "document.request.cancelled")) { | 1028 | else if (equal_Command(cmd, "document.request.cancelled")) { |
1023 | /* TODO: How should cancelled requests be treated in the history? */ | 1029 | /* TODO: How should cancelled requests be treated in the history? */ |