Skip to content

Commit

Permalink
more verbose on window size and position
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Nov 20, 2024
1 parent 9de9db6 commit ba31e78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2145,6 +2145,7 @@ private fun MainAppStart()
y_ = global_prefs.get("main.window.position.y", "").toFloat().dp
w_ = global_prefs.get("main.window.size.width", "").toFloat().dp
h_ = global_prefs.get("main.window.size.height", "").toFloat().dp
println("init:onWindowReload " + x_ + " " + y_ + " " + w_ + " " + h_)
} catch (_: Exception)
{
error = 1
Expand Down Expand Up @@ -2267,15 +2268,15 @@ private fun onWindowMinimised(minimised: Boolean)
@Suppress("UNUSED_PARAMETER")
private fun onWindowResize(size: DpSize)
{
// println("onWindowResize $size")
println("size: onWindowResize $size " + size.width.value.toString() + " " + size.height.value.toString())
global_prefs.put("main.window.size.width", size.width.value.toString())
global_prefs.put("main.window.size.height", size.height.value.toString())
}

@Suppress("UNUSED_PARAMETER")
private fun onWindowRelocate(position: WindowPosition)
{
// println("onWindowRelocate $position")
println("pos : onWindowRelocate $position " + position.x.value.toString() + " " + position.y.value.toString())
global_prefs.put("main.window.position.x", position.x.value.toString())
global_prefs.put("main.window.position.y", position.y.value.toString())
}
Expand Down

0 comments on commit ba31e78

Please sign in to comment.