diff options
Diffstat (limited to 'src/ui/translation.c')
-rw-r--r-- | src/ui/translation.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/translation.c b/src/ui/translation.c index 4102fcb9..88edc48b 100644 --- a/src/ui/translation.c +++ b/src/ui/translation.c | |||
@@ -460,6 +460,7 @@ iBool handleCommand_Translation(iTranslation *d, const char *cmd) { | |||
460 | if (equalWidget_Command(cmd, w, "translation.finished")) { | 460 | if (equalWidget_Command(cmd, w, "translation.finished")) { |
461 | if (!isFinished_Translation(d)) { | 461 | if (!isFinished_Translation(d)) { |
462 | if (processResult_Translation_(d)) { | 462 | if (processResult_Translation_(d)) { |
463 | setupSheetTransition_Mobile(d->dlg, iFalse); | ||
463 | destroy_Widget(d->dlg); | 464 | destroy_Widget(d->dlg); |
464 | d->dlg = NULL; | 465 | d->dlg = NULL; |
465 | } | 466 | } |
@@ -472,10 +473,11 @@ iBool handleCommand_Translation(iTranslation *d, const char *cmd) { | |||
472 | updateTextCStr_LabelWidget( | 473 | updateTextCStr_LabelWidget( |
473 | findMenuItem_Widget(findChild_Widget(d->dlg, "dialogbuttons"), | 474 | findMenuItem_Widget(findChild_Widget(d->dlg, "dialogbuttons"), |
474 | "translation.cancel"), | 475 | "translation.cancel"), |
475 | "${dismiss}"); | 476 | "${close}"); |
476 | cancel_TlsRequest(d->request); | 477 | cancel_TlsRequest(d->request); |
477 | } | 478 | } |
478 | else { | 479 | else { |
480 | setupSheetTransition_Mobile(d->dlg, iFalse); | ||
479 | destroy_Widget(d->dlg); | 481 | destroy_Widget(d->dlg); |
480 | d->dlg = NULL; | 482 | d->dlg = NULL; |
481 | } | 483 | } |