From c6766052ec7bebba42823344fbcb493b94f6717c Mon Sep 17 00:00:00 2001 From: Robinson Date: Sat, 25 Nov 2023 22:06:55 +0100 Subject: [PATCH] Updated to fix odd flashing when first starting --- src/dorkbox/notify/AppNotify.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dorkbox/notify/AppNotify.kt b/src/dorkbox/notify/AppNotify.kt index d0f1ae7..23a6b1e 100755 --- a/src/dorkbox/notify/AppNotify.kt +++ b/src/dorkbox/notify/AppNotify.kt @@ -122,6 +122,7 @@ internal class AppNotify(override val notification: Notify): Canvas(), NotifyTyp minimumSize = actualSize size = actualSize + super.setVisible(false) isFocusable = true background = notification.theme.panel_BG @@ -162,6 +163,8 @@ internal class AppNotify(override val notification: Notify): Canvas(), NotifyTyp // now we setup the rendering of the image refresh() + + setLocation(anchorX, anchorY) } override fun refresh() { @@ -306,6 +309,8 @@ internal class AppNotify(override val notification: Notify): Canvas(), NotifyTyp // } override fun setVisible(visible: Boolean) { + super.setVisible(visible) + // this is because the order of operations are different based upon visibility. updatePositionsPre(this, this, visible) updatePositionsPost(this, this, visible)