src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 31 Jan 2024 10:09:38 +0000 (18:09 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 31 Jan 2024 10:09:38 +0000 (18:09 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index c75dcb3..fdf4024 100644 (file)
                  "\tif (_this.winloading) {",
                  "\t\treturn;",
                  "\t}",
-                 "\tvar ws = this.el.selected as WindowState;",
+                 "\tvar ws = this.el.selected_item as WindowState;",
                  "\tif (ws == null) {",
                  "\t\treturn;",
                  "\t}",
index 4309cb3..622f6cf 100644 (file)
@@ -1877,7 +1877,7 @@ public class Xcls_MainWindow : Object
                                if (_this.winloading) {
                                        return;
                                }
-                               var ws = this.el.selected as WindowState;
+                               var ws = this.el.selected_item as WindowState;
                                if (ws == null) {
                                        return;
                                }