If window is maximized, reset values to default

This commit is contained in:
Syer10
2021-05-27 00:30:03 -04:00
parent 29629cab9a
commit 06a4833ccd

View File

@@ -19,6 +19,14 @@ data class WindowSettings(
val maximized: Boolean? = null
) {
fun get(): WindowGet {
if (maximized == true) {
// Maximize messes with the other parameters so set them to default
return WindowGet(
IntOffset.Zero,
IntSize(800, 600),
true
)
}
val offset = if (x != null && y != null) {
IntOffset(x, y)
} else {