diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-28 09:59:32 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-28 09:59:32 +0300 |
commit | e124d5b5100959492301fe9da17af2048ccc4c76 (patch) | |
tree | ca773e6796e48fe8d30496dbc1a11959d55a6c51 /src/ui | |
parent | ae8cdc792cfa402d99fb3717c2d9ad7d56d4a9b2 (diff) |
Titan: Reloading should re-open the Upload UI
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/documentwidget.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 363dd357..2d4b6b1c 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -2883,6 +2883,11 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd) | |||
2883 | } | 2883 | } |
2884 | else if (equal_Command(cmd, "document.reload") && document_Command(cmd) == d) { | 2884 | else if (equal_Command(cmd, "document.reload") && document_Command(cmd) == d) { |
2885 | d->initNormScrollY = normScrollPos_DocumentWidget_(d); | 2885 | d->initNormScrollY = normScrollPos_DocumentWidget_(d); |
2886 | if (equalCase_Rangecc(urlScheme_String(d->mod.url), "titan")) { | ||
2887 | /* Reopen so the Upload dialog gets shown. */ | ||
2888 | postCommandf_App("open url:%s", cstr_String(d->mod.url)); | ||
2889 | return iTrue; | ||
2890 | } | ||
2886 | fetch_DocumentWidget_(d); | 2891 | fetch_DocumentWidget_(d); |
2887 | return iTrue; | 2892 | return iTrue; |
2888 | } | 2893 | } |