diff options
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 2d4b6b1c..9c8be416 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -1174,10 +1174,6 @@ static void showErrorPage_DocumentWidget_(iDocumentWidget *d, enum iGmStatusCode | |||
1174 | 1); | 1174 | 1); |
1175 | break; | 1175 | break; |
1176 | } | 1176 | } |
1177 | case slowDown_GmStatusCode: | ||
1178 | appendFormat_String(src, "\n\nWait %s seconds before your next request.", | ||
1179 | cstr_String(meta)); | ||
1180 | break; | ||
1181 | default: | 1177 | default: |
1182 | if (!isEmpty_String(meta)) { | 1178 | if (!isEmpty_String(meta)) { |
1183 | appendFormat_String(src, "\n\n${error.server.msg}\n> %s", cstr_String(meta)); | 1179 | appendFormat_String(src, "\n\n${error.server.msg}\n> %s", cstr_String(meta)); |
@@ -1482,8 +1478,9 @@ static void updateDocument_DocumentWidget_(iDocumentWidget *d, | |||
1482 | const iGmLinkId imgLinkId = 1; /* there's only the one link */ | 1478 | const iGmLinkId imgLinkId = 1; /* there's only the one link */ |
1483 | /* TODO: Do the image loading in `postProcessRequestContent_DocumentWidget_()` */ | 1479 | /* TODO: Do the image loading in `postProcessRequestContent_DocumentWidget_()` */ |
1484 | if ((isAudio && isInitialUpdate) || (!isAudio && isRequestFinished)) { | 1480 | if ((isAudio && isInitialUpdate) || (!isAudio && isRequestFinished)) { |
1485 | const char *linkTitle = | 1481 | const char *linkTitle = cstr_Lang( |
1486 | startsWith_String(mimeStr, "image/") ? "Image" : "Audio"; | 1482 | startsWith_String(mimeStr, "image/") ? "media.untitled.image" |
1483 | : "media.untitled.audio"); | ||
1487 | iUrl parts; | 1484 | iUrl parts; |
1488 | init_Url(&parts, d->mod.url); | 1485 | init_Url(&parts, d->mod.url); |
1489 | if (!isEmpty_Range(&parts.path)) { | 1486 | if (!isEmpty_Range(&parts.path)) { |