fix global translateLineText not being updated when translate line changes

This commit is contained in:
Ren Tatsumoto 2023-06-07 09:34:14 +03:00
parent eccc3eaf0f
commit e6a2c4081b
No known key found for this signature in database
GPG key ID: 886D710C66C9C9CA

View file

@ -2347,11 +2347,14 @@ void MainWindow::setInputLineText( QString text, WildcardPolicy wildcardPolicy,
if ( wildcardPolicy == WildcardPolicy::EscapeWildcards ) if ( wildcardPolicy == WildcardPolicy::EscapeWildcards )
text = Folding::escapeWildcardSymbols( text ); text = Folding::escapeWildcardSymbols( text );
if ( popupAction == NoPopupChange || cfg.preferences.searchInDock ) if ( popupAction == NoPopupChange || cfg.preferences.searchInDock ) {
translateLine->setText( text ); translateLine->setText( text );
else }
else {
translateBox->setText( text, popupAction == EnablePopup ); translateBox->setText( text, popupAction == EnablePopup );
} }
GlobalBroadcaster::instance()->translateLineText = text;
}
void MainWindow::handleEsc() void MainWindow::handleEsc()
{ {