]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
Allow .portable.txt for portable mode
authortobtoht <thotbot@protonmail.com>
Thu, 19 Aug 2021 17:54:31 +0000 (19:54 +0200)
committertobtoht <thotbot@protonmail.com>
Wed, 15 Sep 2021 21:46:00 +0000 (23:46 +0200)
src/utils/Utils.cpp
src/utils/config.cpp

index 6bbe95801550cf471dbf19c73c4749e0b87ab547..f754c0fbcdea634bf6236479fa481f59df1c5e5f 100644 (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");
     }
 
index 2e434ea526a6d7ef6438957a8feb773f4f7103a0..51f17ad242799178f1084541d10434e8406c1ffd 100644 (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");
     }