Browse Source

fix label value type setter

PHP-GTK3
yggverse 8 months ago
parent
commit
4732a06b74
  1. 7
      src/Controller/Browser.php

7
src/Controller/Browser.php

@ -116,7 +116,6 @@ class Browser extends \Yggverse\Yoda\Abstract\Window @@ -116,7 +116,6 @@ class Browser extends \Yggverse\Yoda\Abstract\Window
}
}
private function _yoda(string $url): void
{
if ($data = \Yggverse\Yoda\Model\Page::get(str_replace('yoda://', '', $url)))
@ -125,7 +124,7 @@ class Browser extends \Yggverse\Yoda\Abstract\Window @@ -125,7 +124,7 @@ class Browser extends \Yggverse\Yoda\Abstract\Window
$data
);
$this->tab->content->label->set_markup(
$this->tab->content->label->set_text(
$data
);
@ -145,7 +144,7 @@ class Browser extends \Yggverse\Yoda\Abstract\Window @@ -145,7 +144,7 @@ class Browser extends \Yggverse\Yoda\Abstract\Window
{
$data = \Yggverse\Yoda\Model\Page::get('Oops');
$this->tab->content->label->set_markup(
$this->tab->content->label->set_text(
$data
);
@ -230,7 +229,7 @@ class Browser extends \Yggverse\Yoda\Abstract\Window @@ -230,7 +229,7 @@ class Browser extends \Yggverse\Yoda\Abstract\Window
$raw
);
$this->tab->content->label->set_markup(
$this->tab->content->label->set_text(
$response->getBody()
);

Loading…
Cancel
Save