aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-05 14:13:34 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-05 14:13:34 -0700
commitd0b6f0124b41f8e279df5b224c975d03b3631b1e (patch)
treee6c7e7de26868546b45d1a1a29734b7a5fee427b
parentb266068644d2caab4f103b0adf7a491b95f52369 (diff)
downloadPrismLauncher-d0b6f0124b41f8e279df5b224c975d03b3631b1e.tar.gz
PrismLauncher-d0b6f0124b41f8e279df5b224c975d03b3631b1e.tar.bz2
PrismLauncher-d0b6f0124b41f8e279df5b224c975d03b3631b1e.zip
change: don't search appdata locaiton for logging rules if using custom data dir
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
-rw-r--r--launcher/Application.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index f7595512..28c2a9ce 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -8,6 +8,7 @@
* Copyright (C) 2022 Lenny McLennington <lenny@sneed.church>
* Copyright (C) 2022 Tayou <tayou@gmx.net>
* Copyright (C) 2023 TheKodeToad <TheKodeToad@proton.me>
+ * Copyright (C) 2023 Rachel Powers <508861+Ryex@users.noreply.github.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -423,7 +424,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
// search the dataPath()
- if(!foundLoggingRules && ! isPortable()) {
+ if(!foundLoggingRules && !isPortable() && dirParam.isEmpty()) {
logRulesPath = QStandardPaths::locate(QStandardPaths::AppDataLocation, logRulesFile);
if(!logRulesPath.isEmpty()) {
qDebug() << "Found" << logRulesPath << "...";