mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
Revert "TorManager: TOR_INSTALLED, set fallback tor dir"
This reverts commit fce3b03388.
This commit is contained in:
@@ -21,15 +21,9 @@ TorManager::TorManager(QObject *parent)
|
||||
connect(m_checkConnectionTimer, &QTimer::timeout, this, &TorManager::checkConnection);
|
||||
|
||||
this->torDir = Config::defaultConfigDir().filePath("tor");
|
||||
|
||||
#if defined(TOR_INSTALLED)
|
||||
QString installedTorPath = QDir(Utils::applicationPath()).filePath("tor");
|
||||
bool installedTorPathIsDir = QFileInfo(torPath).isDir();
|
||||
if (installedTorPathIsDir) {
|
||||
this->torDir = installedTorPath;
|
||||
} else {
|
||||
this->torDir = Utils::applicationPath();
|
||||
}
|
||||
// When installed, use directory relative to application path.
|
||||
this->torDir = QDir(Utils::applicationPath()).filePath("tor");
|
||||
#endif
|
||||
|
||||
this->torDataPath = Config::defaultConfigDir().filePath("tor/data");
|
||||
|
||||
Reference in New Issue
Block a user