Do not show translation via tray if not requested
This commit is contained in:
parent
3a4ee296af
commit
36700db5d1
@ -144,7 +144,9 @@ void Representer::showTooltip(const TaskPtr &task)
|
|||||||
SOFT_ASSERT(task, return );
|
SOFT_ASSERT(task, return );
|
||||||
lastTooltipTask_ = task;
|
lastTooltipTask_ = task;
|
||||||
|
|
||||||
auto message = task->recognized + " - " + task->translated;
|
auto message = task->recognized;
|
||||||
|
if (!task->translated.isEmpty())
|
||||||
|
message += QLatin1String(" - ") + task->translated;
|
||||||
tray_.showInformation(message);
|
tray_.showInformation(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user