You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto translationCache = ::translationCache.Acquire();
139
-
if (auto it = translationCache->find(sentence); it != translationCache->end()) translation = it->second + L"\x200b";
141
+
if (auto it = translationCache->find(sentence); it != translationCache->end()) translation = it->second + L"\x200b";// dumb hack to not try to translate if stored empty translation
140
142
}
141
-
if (translation.empty())
143
+
if (translation.empty() && (!translateSelectedOnly || sentenceInfo["current select"]))
0 commit comments