Merge pull request #826 from Ajatt-Tools/fix

fix global translateLineText not being updated
This commit is contained in:
xiaoyifang 2023-06-07 15:18:48 +08:00 committed by GitHub
commit 3276d2687c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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