From a288cb52a9127df29adf71979f6fcd9ebf20d0e4 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 12 Jul 2024 17:40:03 +0300 Subject: [PATCH] fix new page initiation --- src/Entity/Browser/Container/Tab.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Entity/Browser/Container/Tab.php b/src/Entity/Browser/Container/Tab.php index d373998..43b0b94 100644 --- a/src/Entity/Browser/Container/Tab.php +++ b/src/Entity/Browser/Container/Tab.php @@ -95,7 +95,9 @@ class Tab bool $focus = true ): void { - $page = new Page( + // Extendable classes not supported by PHP-GTK3 #117 + // create internal pages registry + $this->_page[] = $page = new Page( $this->container ); @@ -134,10 +136,6 @@ class Tab // Render $this->gtk->show(); - - // Extendable classes not supported by PHP-GTK3 #117 - // create internal pages registry - $this->_page[] = $page; } public function getPage(