aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/tracker
diff options
context:
space:
mode:
authorDavid Cole <40234707+DavidArthurCole@users.noreply.github.com>2024-10-13 09:54:05 -0400
committerGitHub <noreply@github.com>2024-10-13 15:54:05 +0200
commite0ae2e8ad4602b3e96fb6ec39716709f225d2461 (patch)
treeb70ad5cec46af89dd0f05a61d39027a964c03693 /src/main/java/at/hannibal2/skyhanni/utils/tracker
parent113389a86c769d4d3a547fac5b7440fa8f29bc6f (diff)
downloadskyhanni-e0ae2e8ad4602b3e96fb6ec39716709f225d2461.tar.gz
skyhanni-e0ae2e8ad4602b3e96fb6ec39716709f225d2461.tar.bz2
skyhanni-e0ae2e8ad4602b3e96fb6ec39716709f225d2461.zip
Backend: Detekt Fixes Part 7 (#2667)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/tracker')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniBucketedItemTracker.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniBucketedItemTracker.kt b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniBucketedItemTracker.kt
index 2addca5c0..ff691fd53 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniBucketedItemTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniBucketedItemTracker.kt
@@ -151,7 +151,10 @@ class SkyHanniBucketedItemTracker<E : Enum<E>, BucketedData : BucketedItemTracke
onClick = {
if (KeyboardManager.isModifierKeyDown()) {
data.removeItem(data.getSelectedBucket(), internalName)
- ChatUtils.chat("Removed $cleanName §efrom $name${if (data.getSelectedBucket() != null) " (${data.getSelectedBucket()})" else ""}")
+ ChatUtils.chat("Removed $cleanName §efrom $name" +
+ if (data.getSelectedBucket() != null) " (${data.getSelectedBucket()})"
+ else ""
+ )
} else {
modify {
it.toggleItemHide(data.getSelectedBucket(), internalName)