Skip to content

Commit

Permalink
change deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-sts committed Apr 30, 2024
1 parent 5963f8f commit 85739a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/solve/main/splitpane/SidePanelSplitPane.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ class SidePanelSplitPane(
}

if (location == SidePanelLocation.Left && !isLeftSidePanelHidden) {
items.removeFirst()
items.removeAt(0)
isLeftSidePanelHidden = true
} else if (location == SidePanelLocation.Right && !isRightSidePanelHidden) {
items.removeLast()
items.removeAt(items.count() - 1)
isRightSidePanelHidden = true
} else {
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ class VisualizationSettingsLayersController : Controller() {
val planeLayers = layers.filter { it.usesCanvas }
val notPlaneLayers = layers.filterNot { !it.usesCanvas }

notPlaneLayers.reversed().forEachIndexed { index, notPlane ->
notPlaneLayers.asReversed().forEachIndexed { index, notPlane ->
sceneController.scene.changeLayerIndex(notPlane, index)
}
planeLayers.reversed().forEachIndexed { index, plane ->
planeLayers.asReversed().forEachIndexed { index, plane ->
sceneController.scene.changeLayerIndex(plane, index)
}
}
Expand Down

0 comments on commit 85739a8

Please sign in to comment.