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,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