diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-04 10:08:34 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-04 10:08:34 +0300 |
commit | 73eeabbaf94d30a70ce9ce8ad102dae77d914084 (patch) | |
tree | 7ec32da1fe5dabca0a2cfd2fff2bd3e3fc325df1 /src | |
parent | c8facdf2c0f00f7e1fe8b04ba1cf3fa4ac230b8b (diff) |
DocumentWidget: Update the correct fetch progress
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/documentwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 4158b719..16d2a84a 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -1040,7 +1040,7 @@ static void showErrorPage_DocumentWidget_(iDocumentWidget *d, enum iGmStatusCode | |||
1040 | } | 1040 | } |
1041 | 1041 | ||
1042 | static void updateFetchProgress_DocumentWidget_(iDocumentWidget *d) { | 1042 | static void updateFetchProgress_DocumentWidget_(iDocumentWidget *d) { |
1043 | iLabelWidget *prog = findWidget_App("document.progress"); | 1043 | iLabelWidget *prog = findChild_Widget(root_Widget(as_Widget(d)), "document.progress"); |
1044 | const size_t dlSize = d->request ? bodySize_GmRequest(d->request) : 0; | 1044 | const size_t dlSize = d->request ? bodySize_GmRequest(d->request) : 0; |
1045 | showCollapsed_Widget(as_Widget(prog), dlSize >= 250000); | 1045 | showCollapsed_Widget(as_Widget(prog), dlSize >= 250000); |
1046 | if (isVisible_Widget(prog)) { | 1046 | if (isVisible_Widget(prog)) { |