Do not show translation via tray if not requested

This commit is contained in:
Gres 2020-05-09 12:51:19 +03:00
parent 3a4ee296af
commit 36700db5d1

View File

@ -144,7 +144,9 @@ void Representer::showTooltip(const TaskPtr &task)
SOFT_ASSERT(task, return );
lastTooltipTask_ = task;
auto message = task->recognized + " - " + task->translated;
auto message = task->recognized;
if (!task->translated.isEmpty())
message += QLatin1String(" - ") + task->translated;
tray_.showInformation(message);
}