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);
|
connect(m_checkConnectionTimer, &QTimer::timeout, this, &TorManager::checkConnection);
|
||||||
|
|
||||||
this->torDir = Config::defaultConfigDir().filePath("tor");
|
this->torDir = Config::defaultConfigDir().filePath("tor");
|
||||||
|
|
||||||
#if defined(TOR_INSTALLED)
|
#if defined(TOR_INSTALLED)
|
||||||
QString installedTorPath = QDir(Utils::applicationPath()).filePath("tor");
|
// When installed, use directory relative to application path.
|
||||||
bool installedTorPathIsDir = QFileInfo(torPath).isDir();
|
this->torDir = QDir(Utils::applicationPath()).filePath("tor");
|
||||||
if (installedTorPathIsDir) {
|
|
||||||
this->torDir = installedTorPath;
|
|
||||||
} else {
|
|
||||||
this->torDir = Utils::applicationPath();
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
this->torDataPath = Config::defaultConfigDir().filePath("tor/data");
|
this->torDataPath = Config::defaultConfigDir().filePath("tor/data");
|
||||||
|
|
Loading…
Reference in a new issue