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()); (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