fix: popup dialog , switch groups should use articleview's word

This commit is contained in:
Xiao Yi Fang 2024-08-08 11:42:22 +08:00 committed by xiaoyifang
parent f2386193f0
commit ec63fa550d

View file

@ -593,7 +593,8 @@ void ScanPopup::currentGroupChanged( int )
if ( isVisible() ) { if ( isVisible() ) {
updateSuggestionList(); updateSuggestionList();
translateInputFinished(); QString word = Folding::unescapeWildcardSymbols( definition->getWord() );
showTranslationFor( word );
} }
cfg.lastPopupGroupId = ui.groupList->getCurrentGroup(); cfg.lastPopupGroupId = ui.groupList->getCurrentGroup();