mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-04-29 22:24:26 +02:00
Snek case
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
c6066fe6ec
commit
a5c62e657a
@ -407,7 +407,7 @@ void ResourcePage::onResourceSelected()
|
||||
|
||||
void ResourcePage::onToggle(const QModelIndex& index)
|
||||
{
|
||||
const bool is_selected = index == m_ui->packView->currentIndex();
|
||||
const bool isSelected = index == m_ui->packView->currentIndex();
|
||||
auto pack = m_model->data(index, Qt::UserRole).value<ModPlatform::IndexedPack::Ptr>();
|
||||
|
||||
if (pack->versionsLoaded) {
|
||||
@ -429,7 +429,7 @@ void ResourcePage::onToggle(const QModelIndex& index)
|
||||
addResourceToDialog(pack, *version);
|
||||
}
|
||||
|
||||
if (is_selected)
|
||||
if (isSelected)
|
||||
updateSelectionButton();
|
||||
|
||||
// force update
|
||||
@ -442,7 +442,7 @@ void ResourcePage::onToggle(const QModelIndex& index)
|
||||
|
||||
// we can't be sure that this hasn't already been requested...
|
||||
// but this does the job well enough and there's not much point preventing edgecases
|
||||
if (!is_selected)
|
||||
if (!isSelected)
|
||||
m_model->loadEntry(index);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user