diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-07-07 11:35:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-07 11:35:03 +0200 |
commit | c4b42412d844bb943144fd17f3a4d134c8ed5eea (patch) | |
tree | 67c8ddce6338db38548b795cb14a20f9e6304315 /src/main | |
parent | fee966a6da7be441d54f76566fe8ba517fc9b4cb (diff) | |
download | skyhanni-c4b42412d844bb943144fd17f3a4d134c8ed5eea.tar.gz skyhanni-c4b42412d844bb943144fd17f3a4d134c8ed5eea.tar.bz2 skyhanni-c4b42412d844bb943144fd17f3a4d134c8ed5eea.zip |
Backend: Fix RepoPattern localeLoading (#2069)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt b/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt index 8d26cf46a..0bbcda9cf 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt @@ -78,7 +78,7 @@ object RepoPatternManager { } } - val localLoading: Boolean get() = config.forceLocal.get() || (!insideTest && PlatformUtils.isDevEnvironment) + val localLoading: Boolean get() = config.forceLocal.get() xor (!insideTest && PlatformUtils.isDevEnvironment) private val logger = LogManager.getLogger("SkyHanni") @@ -309,7 +309,7 @@ object RepoPatternManager { * @return returns any pattern on the [prefix] key space (including list or any other complex structure, but as a simple pattern * */ internal fun getUnusedPatterns(prefix: String): List<Pattern> { - if (config.forceLocal.get()) return emptyList() + if (localLoading) return emptyList() try { verifyKeyShape(prefix) } catch (e: IllegalArgumentException) { |