mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:32:56 +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());
|
||||
|
||||
if (!hasService && canInstallDriver()) {
|
||||
const FirewallConf *conf = IoC<ConfManager>()->conf();
|
||||
|
||||
if (!conf->bootFilter()) {
|
||||
removeDriver();
|
||||
return;
|
||||
}
|
||||
removeDriver();
|
||||
} else {
|
||||
closeDriver();
|
||||
}
|
||||
|
||||
closeDriver();
|
||||
}
|
||||
|
||||
bool FortManager::canInstallDriver() const
|
||||
|
Loading…
Reference in New Issue
Block a user