Allow .portable.txt for portable mode

This commit is contained in:
tobtoht 2021-08-19 19:54:31 +02:00
parent dd9fd80086
commit c15426fee4
2 changed files with 2 additions and 2 deletions

View file

@ -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");
}

View file

@ -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");
}