mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-04-29 22:24:26 +02:00
Fix double load (again lol)
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
d5db974008
commit
01efd5b5d8
@ -132,20 +132,25 @@ void OtherLogsPage::closedImpl()
|
||||
|
||||
void OtherLogsPage::populateSelectLogBox()
|
||||
{
|
||||
QString prevCurrentFile = m_currentFile;
|
||||
const QString prevCurrentFile = m_currentFile;
|
||||
|
||||
ui->selectLogBox->blockSignals(true);
|
||||
ui->selectLogBox->clear();
|
||||
ui->selectLogBox->addItems(getPaths());
|
||||
ui->selectLogBox->blockSignals(false);
|
||||
|
||||
if (!prevCurrentFile.isEmpty()) {
|
||||
const int index = ui->selectLogBox->findText(prevCurrentFile);
|
||||
if (index != -1) {
|
||||
ui->selectLogBox->setCurrentIndex(index);
|
||||
setControlsEnabled(true);
|
||||
return;
|
||||
} else {
|
||||
setControlsEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
on_selectLogBox_currentIndexChanged(ui->selectLogBox->currentIndex());
|
||||
}
|
||||
|
||||
void OtherLogsPage::on_selectLogBox_currentIndexChanged(const int index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user