UI: FortManager: Simplify closeOrRemoveDriver()

This commit is contained in:
Nodir Temirkhodjaev 2024-04-30 17:12:42 +03:00
parent 942b799ac4
commit 7e36decddd

View File

@ -340,16 +340,11 @@ void FortManager::closeOrRemoveDriver()
(IoC<FortSettings>()->hasService() || StartupUtil::isServiceInstalled());
if (!hasService && canInstallDriver()) {
const FirewallConf *conf = IoC<ConfManager>()->conf();
if (!conf->bootFilter()) {
removeDriver();
return;
}
}
} else {
closeDriver();
}
}
bool FortManager::canInstallDriver() const
{