mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Reorganized the first-round AchievementsWindow startup to prevent items from being visible before their parents, thus getting rid of the rapid popups.
This commit is contained in:
parent
f8445782bf
commit
2a9121b66f
@ -65,11 +65,11 @@ AchievementHeaderWidget::AchievementHeaderWidget(QWidget* parent) : QWidget(pare
|
|||||||
m_total->addWidget(m_user_box);
|
m_total->addWidget(m_user_box);
|
||||||
m_total->addWidget(m_game_box);
|
m_total->addWidget(m_game_box);
|
||||||
|
|
||||||
UpdateData();
|
|
||||||
|
|
||||||
m_total->setContentsMargins(0, 0, 0, 0);
|
m_total->setContentsMargins(0, 0, 0, 0);
|
||||||
m_total->setAlignment(Qt::AlignTop);
|
m_total->setAlignment(Qt::AlignTop);
|
||||||
setLayout(m_total);
|
setLayout(m_total);
|
||||||
|
|
||||||
|
UpdateData();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AchievementHeaderWidget::UpdateData()
|
void AchievementHeaderWidget::UpdateData()
|
||||||
|
@ -25,6 +25,8 @@ AchievementsWindow::AchievementsWindow(QWidget* parent) : QDialog(parent)
|
|||||||
ConnectWidgets();
|
ConnectWidgets();
|
||||||
AchievementManager::GetInstance()->SetUpdateCallback(
|
AchievementManager::GetInstance()->SetUpdateCallback(
|
||||||
[this] { QueueOnObject(this, &AchievementsWindow::UpdateData); });
|
[this] { QueueOnObject(this, &AchievementsWindow::UpdateData); });
|
||||||
|
|
||||||
|
UpdateData();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AchievementsWindow::showEvent(QShowEvent* event)
|
void AchievementsWindow::showEvent(QShowEvent* event)
|
||||||
@ -44,7 +46,6 @@ void AchievementsWindow::CreateMainLayout()
|
|||||||
GetWrappedWidget(new AchievementSettingsWidget(m_tab_widget, this), this, 125, 100),
|
GetWrappedWidget(new AchievementSettingsWidget(m_tab_widget, this), this, 125, 100),
|
||||||
tr("Settings"));
|
tr("Settings"));
|
||||||
m_tab_widget->addTab(GetWrappedWidget(m_progress_widget, this, 125, 100), tr("Progress"));
|
m_tab_widget->addTab(GetWrappedWidget(m_progress_widget, this, 125, 100), tr("Progress"));
|
||||||
m_tab_widget->setTabVisible(1, AchievementManager::GetInstance()->IsGameLoaded());
|
|
||||||
|
|
||||||
m_button_box = new QDialogButtonBox(QDialogButtonBox::Close);
|
m_button_box = new QDialogButtonBox(QDialogButtonBox::Close);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user