mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-09 16:45:46 -07:00
contains instead of equals for os.name
This commit is contained in:
parent
de5cbda4f9
commit
b009601848
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue