Window: save the initial title from WindowAttributes

If not saved, the title getter will return the wrong value
This commit is contained in:
Josh Tynjala
2023-03-15 15:03:29 -07:00
parent 589712e29f
commit 4105b97fc8

View File

@@ -153,7 +153,7 @@ class Window
__scale = 1;
__x = 0;
__y = 0;
__title = "";
__title = Reflect.hasField(__attributes, "title") ? __attributes.title : "";
id = -1;
__backend = new WindowBackend(this);