Browse Source

Allow .portable.txt for portable mode

beta-9
tobtoht 3 months ago
parent
commit
c15426fee4
  1. 2
      src/utils/Utils.cpp
  2. 2
      src/utils/config.cpp

2
src/utils/Utils.cpp

@ -100,7 +100,7 @@ bool dirExists(const QString &path) {
QString defaultWalletDir() {
QString portablePath = QCoreApplication::applicationDirPath().append("/%1");
if (QFile::exists(portablePath.arg(".portable"))) {
if (QFile::exists(portablePath.arg(".portable")) || QFile::exists(portablePath.arg(".portable.txt"))) {
return portablePath.arg("feather_data/wallets");
}

2
src/utils/config.cpp

@ -158,7 +158,7 @@ Config::Config(QObject* parent)
QDir Config::defaultConfigDir() {
QString portablePath = QCoreApplication::applicationDirPath().append("/%1");
if (QFile::exists(portablePath.arg(".portable"))) {
if (QFile::exists(portablePath.arg(".portable")) || QFile::exists(portablePath.arg(".portable.txt"))) {
return portablePath.arg("feather_data");
}

Loading…
Cancel
Save