Skip to content

Commit

Permalink
Remove if TOKEN_AUTH_ONLY because the build will fail without it in a…
Browse files Browse the repository at this point in the history
…ll cases.

Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan authored and mgallien committed Jan 22, 2024
1 parent 7e34de8 commit 8dde509
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/common/utility_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,10 @@ void Utility::setLaunchOnStartup(const QString &appName, const QString &guiName,
}
}

#ifndef TOKEN_AUTH_ONLY
bool Utility::hasDarkSystray()
{
return true;
}
#endif

QString Utility::getCurrentUserName()
{
Expand Down
2 changes: 0 additions & 2 deletions src/common/utility_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ void Utility::setLaunchOnStartup(const QString &appName, const QString &guiName,
}
}

#ifndef TOKEN_AUTH_ONLY
bool Utility::hasDarkSystray()
{
if(Utility::registryGetKeyValue( HKEY_CURRENT_USER,
Expand Down Expand Up @@ -185,7 +184,6 @@ bool Utility::registryKeyExists(HKEY hRootKey, const QString &subKey)
RegCloseKey(hKey);
return result != ERROR_FILE_NOT_FOUND;
}
#endif

QVariant Utility::registryGetKeyValue(HKEY hRootKey, const QString &subKey, const QString &valueName)
{
Expand Down

0 comments on commit 8dde509

Please sign in to comment.