mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
Render checkbox in project items
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@ -84,6 +84,8 @@ auto ResourceModel::data(const QModelIndex& index, int role) const -> QVariant
|
||||
return pack->description;
|
||||
case UserDataTypes::SELECTED:
|
||||
return pack->isAnyVersionSelected();
|
||||
case Qt::CheckStateRole:
|
||||
return pack->isAnyVersionSelected() ? Qt::Checked : Qt::Unchecked;
|
||||
case UserDataTypes::INSTALLED:
|
||||
return this->isPackInstalled(pack);
|
||||
default:
|
||||
|
Reference in New Issue
Block a user