fixed checkbox selection on installedAppsDrawer (#759)
* fixed checkbox selection on installedAppsDrawer * added sorting by name for split tunneling by application
This commit is contained in:
parent
79edbe52a3
commit
5c19b08e5e
4 changed files with 14 additions and 6 deletions
|
|
@ -37,6 +37,9 @@ QVariant InstalledAppsModel::data(const QModelIndex &index, int role) const
|
|||
case PackageNameRole: {
|
||||
return m_installedApps.at(index.row()).toObject().value("package");
|
||||
}
|
||||
case IsAppSelectedRole: {
|
||||
return m_selectedAppIndexes.contains(index.row());
|
||||
}
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
|
|
@ -93,5 +96,6 @@ QHash<int, QByteArray> InstalledAppsModel::roleNames() const
|
|||
roles[AppNameRole] = "appName";
|
||||
roles[AppIconRole] = "appIcon";
|
||||
roles[PackageNameRole] = "packageName";
|
||||
roles[IsAppSelectedRole] = "isAppSelected";
|
||||
return roles;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue