mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-04-30 14:44:31 +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()
|
void OtherLogsPage::populateSelectLogBox()
|
||||||
{
|
{
|
||||||
QString prevCurrentFile = m_currentFile;
|
const QString prevCurrentFile = m_currentFile;
|
||||||
|
|
||||||
|
ui->selectLogBox->blockSignals(true);
|
||||||
ui->selectLogBox->clear();
|
ui->selectLogBox->clear();
|
||||||
ui->selectLogBox->addItems(getPaths());
|
ui->selectLogBox->addItems(getPaths());
|
||||||
|
ui->selectLogBox->blockSignals(false);
|
||||||
|
|
||||||
if (!prevCurrentFile.isEmpty()) {
|
if (!prevCurrentFile.isEmpty()) {
|
||||||
const int index = ui->selectLogBox->findText(prevCurrentFile);
|
const int index = ui->selectLogBox->findText(prevCurrentFile);
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
ui->selectLogBox->setCurrentIndex(index);
|
ui->selectLogBox->setCurrentIndex(index);
|
||||||
setControlsEnabled(true);
|
setControlsEnabled(true);
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
setControlsEnabled(false);
|
setControlsEnabled(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
on_selectLogBox_currentIndexChanged(ui->selectLogBox->currentIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
void OtherLogsPage::on_selectLogBox_currentIndexChanged(const int index)
|
void OtherLogsPage::on_selectLogBox_currentIndexChanged(const int index)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user