mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Simplify WindowSettings.get
This commit is contained in:
@@ -46,15 +46,7 @@ data class WindowSettings(
|
||||
return WindowGet(
|
||||
offset,
|
||||
size,
|
||||
when {
|
||||
maximized == true -> {
|
||||
WindowPlacement.Maximized
|
||||
}
|
||||
fullscreen == true -> {
|
||||
WindowPlacement.Fullscreen
|
||||
}
|
||||
else -> WindowPlacement.Floating
|
||||
}
|
||||
WindowPlacement.Floating
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user