UI: Programs: State icon for LAN only

This commit is contained in:
Nodir Temirkhodjaev 2023-01-17 16:52:38 +03:00
parent dc436b5bc3
commit 6bc0044e1d

View File

@ -237,8 +237,10 @@ QIcon AppListModel::appStateIcon(const AppRow &appRow)
return IconCache::icon(appRow.alerted return IconCache::icon(appRow.alerted
? ":/icons/error.png" ? ":/icons/error.png"
: (appRow.blocked ? ":/icons/deny.png" : (appRow.blocked ? ":/icons/deny.png"
: (appRow.endTime.isNull() ? ":/icons/accept.png" : (appRow.endTime.isNull()
: ":/icons/time.png"))); ? (appRow.lanOnly ? ":/icons/hostname.png"
: ":/icons/accept.png")
: ":/icons/time.png")));
} }
bool AppListModel::updateAppRow(const QString &sql, const QVariantList &vars, AppRow &appRow) const bool AppListModel::updateAppRow(const QString &sql, const QVariantList &vars, AppRow &appRow) const