mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 19:12:47 +02:00
Qt/InfoWidget: Don't show banner details if no data is present
This commit is contained in:
parent
a68b8202e1
commit
a19e5b3f7a
@ -25,6 +25,8 @@ InfoWidget::InfoWidget(const UICommon::GameFile& game) : m_game(game)
|
||||
QVBoxLayout* layout = new QVBoxLayout();
|
||||
|
||||
layout->addWidget(CreateISODetails());
|
||||
|
||||
if (!game.GetLanguages().empty())
|
||||
layout->addWidget(CreateBannerDetails());
|
||||
|
||||
setLayout(layout);
|
||||
@ -144,6 +146,7 @@ void InfoWidget::CreateLanguageSelector()
|
||||
}
|
||||
if (m_language_selector->count() == 1)
|
||||
m_language_selector->setDisabled(true);
|
||||
|
||||
connect(m_language_selector,
|
||||
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
|
||||
&InfoWidget::ChangeLanguage);
|
||||
|
Loading…
Reference in New Issue
Block a user