mirror of
https://github.com/tnodir/fort
synced 2024-11-14 21:55:37 +00:00
UI: ConfAppManager: Blocked app can't be wildcard
This commit is contained in:
parent
d93ac7503a
commit
8b8c1e0c23
@ -16,7 +16,6 @@
|
||||
#include <manager/drivelistmanager.h>
|
||||
#include <manager/envmanager.h>
|
||||
#include <util/conf/confbuffer.h>
|
||||
#include <util/conf/confutil.h>
|
||||
#include <util/dateutil.h>
|
||||
#include <util/fileutil.h>
|
||||
#include <util/ioc/ioccontainer.h>
|
||||
@ -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<AppInfoCache>()->appName(app.appPath);
|
||||
app.appName = IoC<AppInfoCache>()->appName(app.appPath);
|
||||
|
||||
const bool ok = addOrUpdateApp(app);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user