mirror of
https://github.com/outbackdingo/amnezia-client.git
synced 2026-01-27 10:18:14 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user