contains instead of equals for os.name

This commit is contained in:
downthecrop 2024-10-13 00:25:07 -07:00
parent de5cbda4f9
commit b009601848

View file

@ -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) {