mirror of
https://github.com/henrypp/simplewall.git
synced 2026-10-23 11:32:32 -05:00
highlight valid connections in network tab
This commit is contained in:
3 files changed
+15
-6
No files matched your search
+2
-2
@@ -335,7 +335,7 @@ SIZE_T _app_getlogapp (SIZE_T idx)
|
||||
return 0;
|
||||
}
|
||||
|
||||
COLORREF _app_getappcolor (INT listview_id, SIZE_T app_hash)
|
||||
COLORREF _app_getappcolor (INT listview_id, SIZE_T app_hash, BOOLEAN is_validconnection)
|
||||
{
|
||||
PITEM_APP ptr_app = _app_getappitem (app_hash);
|
||||
|
||||
@@ -354,7 +354,7 @@ COLORREF _app_getappcolor (INT listview_id, SIZE_T app_hash)
|
||||
else if (_r_config_getboolean (L"IsHighlightTimer", TRUE, L"colors") && _app_istimeractive (ptr_app))
|
||||
colorValue = L"ColorTimer";
|
||||
|
||||
else if (!is_networklist && !ptr_app->is_silent && _r_config_getboolean (L"IsHighlightConnection", TRUE, L"colors") && _app_isapphaveconnection (app_hash))
|
||||
else if (!ptr_app->is_silent && _r_config_getboolean (L"IsHighlightConnection", TRUE, L"colors") && ((is_networklist && is_validconnection) || (!is_networklist && _app_isapphaveconnection (app_hash))))
|
||||
colorValue = L"ColorConnection";
|
||||
|
||||
else if (_r_config_getboolean (L"IsHighlightSigned", TRUE, L"colors") && !ptr_app->is_silent && _r_config_getboolean (L"IsCertificatesEnabled", FALSE) && ptr_app->is_signed)
|
||||
|
||||
Reference in new issue
Block a user