From 94cce13ab76ca040c7f103e61051ee977ef9086c Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 1 Oct 2021 21:15:17 +0300 Subject: Fixed widget hiding in translation dialog "From"/"To" fields were not being hidden when translation request was submitted. --- res/about/version.gmi | 1 + src/ui/translation.c | 6 ++++-- 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 @@ * Fixed feed entries forgetting their (un)read status after several months. * Fixed feed entries being discarded before they are removed from their source feed, causing them to reappear on the next refresh. * Fixed failure to parse Atom feed entry timestamps that use space as the date/time separator. +* Fixed dropdown labels staying visible in the translation dialog. * Fixed showing/hiding of the feed update indicator in split view. * Added a small progress bar to the feed update indicator. * 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) { iWidget *w = as_Widget(d->doc); if (equalWidget_Command(cmd, w, "translation.submit")) { if (status_TlsRequest(d->request) == initialized_TlsRequestStatus) { - iWidget *langs = findChild_Widget(d->dlg, "xlt.langs"); -// setFlags_Widget(langs, hidden_WidgetFlag, iTrue); + iWidget *langs = findChild_Widget(d->dlg, "xlt.langs"); + if (langs) { + setFlags_Widget(langs, hidden_WidgetFlag, iTrue); + } setFlags_Widget(findChild_Widget(d->dlg, "xlt.from"), hidden_WidgetFlag, iTrue); setFlags_Widget(findChild_Widget(d->dlg, "xlt.to"), hidden_WidgetFlag, iTrue); if (!langs) langs = d->dlg; -- cgit v1.2.3