From cf70b988f13f496c9e6e68f61fbd230468b8bba6 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 6 Jun 2024 12:31:15 +0300 Subject: [PATCH] UI: FortManager: Service must be installed after driver (re)installation --- src/ui/fortmanager.cpp | 2 +- src/ui/util/startuputil.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/fortmanager.cpp b/src/ui/fortmanager.cpp index b724eb8b..bf7f9011 100644 --- a/src/ui/fortmanager.cpp +++ b/src/ui/fortmanager.cpp @@ -304,7 +304,7 @@ bool FortManager::installDriver() IoC()->reinstallDriver(); if (hasService) { - StartupUtil::startService(); + StartupUtil::setServiceInstalled(); } else { // Re-open the driver device and initialize it if (setupDriver()) { diff --git a/src/ui/util/startuputil.h b/src/ui/util/startuputil.h index d171a161..92334308 100644 --- a/src/ui/util/startuputil.h +++ b/src/ui/util/startuputil.h @@ -13,7 +13,7 @@ public: static const wchar_t *serviceName(); static bool isServiceInstalled(); - static void setServiceInstalled(bool install); + static void setServiceInstalled(bool install = true); static bool isServiceRunning();