mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
reset scroll on resource change
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
5767479c21
commit
eb15897b1a
2 changed files with 8 additions and 0 deletions
|
|
@ -270,6 +270,7 @@ void InfoFrame::updateHiddenState()
|
|||
|
||||
void InfoFrame::setName(QString text)
|
||||
{
|
||||
resetScrolll();
|
||||
if (text.isEmpty()) {
|
||||
ui->nameLabel->setHidden(true);
|
||||
} else {
|
||||
|
|
@ -419,3 +420,9 @@ void InfoFrame::boxClosed([[maybe_unused]] int result)
|
|||
{
|
||||
m_current_box = nullptr;
|
||||
}
|
||||
|
||||
void InfoFrame::resetScrolll()
|
||||
{
|
||||
ui->scrollArea->horizontalScrollBar()->setValue(0);
|
||||
ui->scrollArea->verticalScrollBar()->setValue(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue