feat: Show app path in app tunneling screen

This commit is contained in:
Anton K 2025-06-29 12:38:41 +03:00
parent 979ab42c5a
commit c948681624
3 changed files with 12 additions and 5 deletions

View file

@ -26,9 +26,12 @@ QVariant AppSplitTunnelingModel::data(const QModelIndex &index, int role) const
return QVariant();
switch (role) {
case AppPathRole: {
case AppNameRole: {
return m_apps.at(index.row()).appName;
}
case AppPathRole: {
return m_apps.at(index.row()).appPath;
}
default: {
return true;
}
@ -89,6 +92,7 @@ void AppSplitTunnelingModel::toggleSplitTunneling(bool enabled)
QHash<int, QByteArray> AppSplitTunnelingModel::roleNames() const
{
QHash<int, QByteArray> roles;
roles[AppNameRole] = "appName";
roles[AppPathRole] = "appPath";
return roles;
}