From b00960184882ef87f5a2a2747e074dd07e0bcffc Mon Sep 17 00:00:00 2001 From: downthecrop Date: Sun, 13 Oct 2024 00:25:07 -0700 Subject: [PATCH] contains instead of equals for os.name --- plugin-playground/src/main/kotlin/KondoKit/plugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-playground/src/main/kotlin/KondoKit/plugin.kt b/plugin-playground/src/main/kotlin/KondoKit/plugin.kt index 1bd9ecd..8628cfa 100644 --- a/plugin-playground/src/main/kotlin/KondoKit/plugin.kt +++ b/plugin-playground/src/main/kotlin/KondoKit/plugin.kt @@ -119,7 +119,7 @@ class plugin : Plugin() { val mode = GetWindowMode() val currentScrollPaneWidth = if (mainContentPanel.isVisible) NAVBAR_WIDTH + MAIN_CONTENT_WIDTH else NAVBAR_WIDTH val osName = System.getProperty("os.name").toLowerCase() - val offset = if (osName == "win") 16 else 0 + val offset = if (osName.contains("win")) 16 else 0 when (mode) { WindowMode.FIXED -> { if (frame.width < FIXED_WIDTH + currentScrollPaneWidth + offset) {