Snek case

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2025-03-19 01:43:43 +00:00
parent c6066fe6ec
commit a5c62e657a
No known key found for this signature in database
GPG Key ID: 5E39D70B4C93C38E

View File

@ -407,7 +407,7 @@ void ResourcePage::onResourceSelected()
void ResourcePage::onToggle(const QModelIndex& index) 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>(); auto pack = m_model->data(index, Qt::UserRole).value<ModPlatform::IndexedPack::Ptr>();
if (pack->versionsLoaded) { if (pack->versionsLoaded) {
@ -429,7 +429,7 @@ void ResourcePage::onToggle(const QModelIndex& index)
addResourceToDialog(pack, *version); addResourceToDialog(pack, *version);
} }
if (is_selected) if (isSelected)
updateSelectionButton(); updateSelectionButton();
// force update // force update
@ -442,7 +442,7 @@ void ResourcePage::onToggle(const QModelIndex& index)
// we can't be sure that this hasn't already been requested... // 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 // but this does the job well enough and there's not much point preventing edgecases
if (!is_selected) if (!isSelected)
m_model->loadEntry(index); m_model->loadEntry(index);
} }
} }