From 8b8c1e0c23a9352174e1ebc92b34ae0c0770deaa Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Tue, 29 Oct 2024 21:25:30 +0500 Subject: [PATCH] UI: ConfAppManager: Blocked app can't be wildcard --- src/ui/conf/confappmanager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/conf/confappmanager.cpp b/src/ui/conf/confappmanager.cpp index b09d4ec0..ce214594 100644 --- a/src/ui/conf/confappmanager.cpp +++ b/src/ui/conf/confappmanager.cpp @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -207,8 +206,7 @@ bool ConfAppManager::addAppPathBlocked(App &app) if (app.appId > 0) return false; // already exists - app.isWildcard = ConfUtil::matchWildcard(app.appPath).hasMatch(); - app.appName = app.isWildcard ? app.appOriginPath : IoC()->appName(app.appPath); + app.appName = IoC()->appName(app.appPath); const bool ok = addOrUpdateApp(app);