feat: Show app path in app tunneling screen
This commit is contained in:
parent
979ab42c5a
commit
c948681624
3 changed files with 12 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue