mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 00:55:09 -07:00
[DeckShare] Let the share bar owners supply the hint text
This commit is contained in:
parent
3199a4821a
commit
4721404e8b
3 changed files with 7 additions and 2 deletions
|
|
@ -43,7 +43,6 @@ void ShareBarWidget::retranslateUi()
|
|||
nameEdit->setPlaceholderText(tr("Share name"));
|
||||
cancelButton->setText(tr("Cancel"));
|
||||
createButton->setText(tr("Create share link"));
|
||||
hintLabel->setText(tr("Click deck tiles to select the decks you want to share."));
|
||||
}
|
||||
|
||||
QString ShareBarWidget::name() const
|
||||
|
|
@ -75,4 +74,4 @@ void ShareBarWidget::setCreateEnabled(bool enabled)
|
|||
void ShareBarWidget::focusName()
|
||||
{
|
||||
nameEdit->setFocus();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -210,6 +210,9 @@ void TabDeckStorage::retranslateUi()
|
|||
aShareDecks->setText(tr("Share decks"));
|
||||
aOpenDecksFolder->setText(tr("Open decks folder"));
|
||||
shareBar->retranslateUi();
|
||||
if (shareBar->isVisible()) {
|
||||
onServerSelectionChanged();
|
||||
}
|
||||
}
|
||||
|
||||
QString TabDeckStorage::getTargetPath() const
|
||||
|
|
|
|||
|
|
@ -69,6 +69,9 @@ void TabDeckStorageVisual::retranslateUi()
|
|||
{
|
||||
visualDeckStorageWidget->retranslateUi();
|
||||
shareBar->retranslateUi();
|
||||
if (shareBar->isVisible()) {
|
||||
updateShareHint();
|
||||
}
|
||||
}
|
||||
|
||||
void TabDeckStorageVisual::actOpenLocalDeck(const QString &filePath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue