Move achievement dialog scrollbars to top when changing games

This commit is contained in:
LillyJadeKatrin 2024-06-27 00:35:07 -04:00
parent 0615db9e2e
commit de7bf2b6a5
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,8 @@
#include <mutex>
#include <QDialogButtonBox>
#include <QScrollArea>
#include <QScrollBar>
#include <QTabWidget>
#include <QVBoxLayout>
@ -83,6 +85,8 @@ void AchievementsWindow::UpdateData(AchievementManager::UpdatedItems updated_ite
m_header_widget->UpdateData();
m_progress_widget->UpdateData(true);
m_leaderboard_widget->UpdateData(true);
static_cast<QScrollArea*>(m_tab_widget->widget(1))->verticalScrollBar()->setValue(0);
static_cast<QScrollArea*>(m_tab_widget->widget(2))->verticalScrollBar()->setValue(0);
}
else
{