mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-03 09:29:37 +00:00
Revert "TorManager: TOR_INSTALLED, set fallback tor dir"
This reverts commit fce3b03388
.
This commit is contained in:
parent
a8a7594cc1
commit
12aa36a1e3
1 changed files with 2 additions and 8 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue