mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:56:22 +00:00
UI: FortManager: Simplify closeOrRemoveDriver()
This commit is contained in:
parent
942b799ac4
commit
7e36decddd
@ -340,15 +340,10 @@ void FortManager::closeOrRemoveDriver()
|
|||||||
(IoC<FortSettings>()->hasService() || StartupUtil::isServiceInstalled());
|
(IoC<FortSettings>()->hasService() || StartupUtil::isServiceInstalled());
|
||||||
|
|
||||||
if (!hasService && canInstallDriver()) {
|
if (!hasService && canInstallDriver()) {
|
||||||
const FirewallConf *conf = IoC<ConfManager>()->conf();
|
removeDriver();
|
||||||
|
} else {
|
||||||
if (!conf->bootFilter()) {
|
closeDriver();
|
||||||
removeDriver();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
closeDriver();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FortManager::canInstallDriver() const
|
bool FortManager::canInstallDriver() const
|
||||||
|
Loading…
Reference in New Issue
Block a user