mirror of
https://github.com/tnodir/fort
synced 2024-11-15 11:35:07 +00:00
UI: Improve startup-mode detection.
This commit is contained in:
parent
f8b43bbf99
commit
b987ea2232
@ -106,8 +106,8 @@ void FortManager::initialize()
|
||||
setupStatManager();
|
||||
setupAppInfoManager();
|
||||
|
||||
setupLogManager();
|
||||
setupDriver();
|
||||
setupLogManager();
|
||||
|
||||
setupAppInfoCache();
|
||||
setupHostInfoCache();
|
||||
|
@ -161,8 +161,9 @@ bool StartupUtil::startService()
|
||||
|
||||
StartupUtil::StartupMode StartupUtil::getStartupMode()
|
||||
{
|
||||
return isServiceInstalled()
|
||||
? (isAutorunForAllUsers() ? StartupAllUsers : StartupAllUsersBackground)
|
||||
const bool isForAllUsers = isAutorunForAllUsers();
|
||||
return (isForAllUsers || isServiceInstalled())
|
||||
? (isForAllUsers ? StartupAllUsers : StartupAllUsersBackground)
|
||||
: (isAutorunForCurrentUser() ? StartupCurrentUser : StartupDisabled);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user