From b60e697872a0cad7b04b930fcd16ec2b36a66af8 Mon Sep 17 00:00:00 2001 From: Constructor Date: Thu, 2 Mar 2023 06:42:39 +0100 Subject: [PATCH] Fix folder buttons not disabling --- .../com/lambda/client/module/modules/misc/MapDownloader.kt | 2 +- .../com/lambda/client/module/modules/player/PacketLogger.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/lambda/client/module/modules/misc/MapDownloader.kt b/src/main/kotlin/com/lambda/client/module/modules/misc/MapDownloader.kt index 404b6d7f0..6509bec18 100644 --- a/src/main/kotlin/com/lambda/client/module/modules/misc/MapDownloader.kt +++ b/src/main/kotlin/com/lambda/client/module/modules/misc/MapDownloader.kt @@ -39,7 +39,7 @@ internal object MapDownloader : Module( private val saveDelay by setting("Save delay", 0.2, 0.1..2.0, 0.1, unit = " s") private val openImageFolder = setting("Open Image Folder...", false, consumer = { _, _ -> FolderUtils.openFolder(FolderUtils.mapImagesFolder) - true + false }) private val pendingHashes = mutableSetOf() private var existingHashes = mutableSetOf() diff --git a/src/main/kotlin/com/lambda/client/module/modules/player/PacketLogger.kt b/src/main/kotlin/com/lambda/client/module/modules/player/PacketLogger.kt index cbe6f3f9b..2a3d15395 100644 --- a/src/main/kotlin/com/lambda/client/module/modules/player/PacketLogger.kt +++ b/src/main/kotlin/com/lambda/client/module/modules/player/PacketLogger.kt @@ -46,7 +46,7 @@ object PacketLogger : Module( private val ignoreTimeUpdates by setting("Ignore Time Updates", false, description = "Ignore time update packets.") private val openLogFolder by setting("Open Log Folder...", false, consumer = { _, _ -> FolderUtils.openFolder(FolderUtils.packetLogFolder) - true + false }) private val fileTimeFormatter = DateTimeFormatter.ofPattern("HH-mm-ss_SSS")