mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-22 17:48:48 +02:00
Allow .portable.txt for portable mode
This commit is contained in:
+1
-1
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user