mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
fix new page initiation
This commit is contained in:
parent
11b13ba011
commit
a288cb52a9
1 changed files with 3 additions and 5 deletions
|
|
@ -95,7 +95,9 @@ class Tab
|
||||||
bool $focus = true
|
bool $focus = true
|
||||||
): void
|
): void
|
||||||
{
|
{
|
||||||
$page = new Page(
|
// Extendable classes not supported by PHP-GTK3 #117
|
||||||
|
// create internal pages registry
|
||||||
|
$this->_page[] = $page = new Page(
|
||||||
$this->container
|
$this->container
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -134,10 +136,6 @@ class Tab
|
||||||
|
|
||||||
// Render
|
// Render
|
||||||
$this->gtk->show();
|
$this->gtk->show();
|
||||||
|
|
||||||
// Extendable classes not supported by PHP-GTK3 #117
|
|
||||||
// create internal pages registry
|
|
||||||
$this->_page[] = $page;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPage(
|
public function getPage(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue