summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-01 21:15:17 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-01 21:15:17 +0300
commit94cce13ab76ca040c7f103e61051ee977ef9086c (patch)
tree0dc0b747e170ae7d1149a2029c8c42dc05c5aae5
parent7194417dbc5115853db5acd0ce1279fc5b04878b (diff)
Fixed widget hiding in translation dialog
"From"/"To" fields were not being hidden when translation request was submitted.
-rw-r--r--res/about/version.gmi1
-rw-r--r--src/ui/translation.c6
2 files changed, 5 insertions, 2 deletions
diff --git a/res/about/version.gmi b/res/about/version.gmi
index beb8d3be..61b399f3 100644
--- a/res/about/version.gmi
+++ b/res/about/version.gmi
@@ -10,6 +10,7 @@
10* Fixed feed entries forgetting their (un)read status after several months. 10* Fixed feed entries forgetting their (un)read status after several months.
11* Fixed feed entries being discarded before they are removed from their source feed, causing them to reappear on the next refresh. 11* Fixed feed entries being discarded before they are removed from their source feed, causing them to reappear on the next refresh.
12* Fixed failure to parse Atom feed entry timestamps that use space as the date/time separator. 12* Fixed failure to parse Atom feed entry timestamps that use space as the date/time separator.
13* Fixed dropdown labels staying visible in the translation dialog.
13* Fixed showing/hiding of the feed update indicator in split view. 14* Fixed showing/hiding of the feed update indicator in split view.
14* Added a small progress bar to the feed update indicator. 15* Added a small progress bar to the feed update indicator.
15* When adding a bookmark/folder, the bookmarks list scrolls to show the new item. 16* When adding a bookmark/folder, the bookmarks list scrolls to show the new item.
diff --git a/src/ui/translation.c b/src/ui/translation.c
index b86e6e52..b3c2833a 100644
--- a/src/ui/translation.c
+++ b/src/ui/translation.c
@@ -432,8 +432,10 @@ iBool handleCommand_Translation(iTranslation *d, const char *cmd) {
432 iWidget *w = as_Widget(d->doc); 432 iWidget *w = as_Widget(d->doc);
433 if (equalWidget_Command(cmd, w, "translation.submit")) { 433 if (equalWidget_Command(cmd, w, "translation.submit")) {
434 if (status_TlsRequest(d->request) == initialized_TlsRequestStatus) { 434 if (status_TlsRequest(d->request) == initialized_TlsRequestStatus) {
435 iWidget *langs = findChild_Widget(d->dlg, "xlt.langs"); 435 iWidget *langs = findChild_Widget(d->dlg, "xlt.langs");
436// setFlags_Widget(langs, hidden_WidgetFlag, iTrue); 436 if (langs) {
437 setFlags_Widget(langs, hidden_WidgetFlag, iTrue);
438 }
437 setFlags_Widget(findChild_Widget(d->dlg, "xlt.from"), hidden_WidgetFlag, iTrue); 439 setFlags_Widget(findChild_Widget(d->dlg, "xlt.from"), hidden_WidgetFlag, iTrue);
438 setFlags_Widget(findChild_Widget(d->dlg, "xlt.to"), hidden_WidgetFlag, iTrue); 440 setFlags_Widget(findChild_Widget(d->dlg, "xlt.to"), hidden_WidgetFlag, iTrue);
439 if (!langs) langs = d->dlg; 441 if (!langs) langs = d->dlg;