UI: FortManager::closeOrRemoveDriver: Fix service checking

This commit is contained in:
Nodir Temirkhodjaev 2024-04-30 16:27:23 +03:00
parent 59d4d0f001
commit d73a00db49

View File

@ -336,7 +336,10 @@ void FortManager::closeDriver()
void FortManager::closeOrRemoveDriver() void FortManager::closeOrRemoveDriver()
{ {
if (canInstallDriver() && !IoC<FortSettings>()->hasService()) { const bool hasService =
(IoC<FortSettings>()->hasService() || StartupUtil::isServiceInstalled());
if (!hasService && canInstallDriver()) {
const FirewallConf *conf = IoC<ConfManager>()->conf(); const FirewallConf *conf = IoC<ConfManager>()->conf();
if (!conf->bootFilter()) { if (!conf->bootFilter()) {