mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 05:20:00 -08:00
[Client] Restore the bracket info tooltip when idle
retranslateUi() used to install the static "Why this bracket?" tooltip, but it now calls displayEstimate(), which returned early while no estimate existed. That left the info button without its idle tooltip. Set the fallback where displayEstimate() owns the button's tooltip. An existing estimate still wins, and a language change refreshes the text.
This commit is contained in:
parent
9798564639
commit
498e436bf9
1 changed files with 1 additions and 0 deletions
|
|
@ -241,6 +241,7 @@ void CommanderBracketWidget::onEstimateBracketFinished(quint64 id,
|
||||||
void CommanderBracketWidget::displayEstimate()
|
void CommanderBracketWidget::displayEstimate()
|
||||||
{
|
{
|
||||||
if (!hasEstimate) {
|
if (!hasEstimate) {
|
||||||
|
bracketInfoButton->setToolTip(tr("Why this bracket?"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue