Browse Source

move progressbar initiation to the page entity

PHP-GTK3
yggverse 4 months ago
parent
commit
e1455e5772
  1. 7
      src/Entity/Browser/Container/Page.php
  2. 6
      src/Entity/Browser/Container/Page/Content.php

7
src/Entity/Browser/Container/Page.php

@ -107,8 +107,15 @@ class Page @@ -107,8 +107,15 @@ class Page
bool $history = true
): void
{
// Show progressbar
$this->progressbar->infinitive();
// Update content entity
$this->content->update(
$history
);
// Hide progressbar
$this->progressbar->hide();
}
}

6
src/Entity/Browser/Container/Page/Content.php

@ -73,9 +73,6 @@ class Content @@ -73,9 +73,6 @@ class Content
bool $history = true
): void
{
// Show progressbar
$this->page->progressbar->infinitive();
// Parse address
$address = new \Yggverse\Net\Address(
$this->page->navbar->request->getValue()
@ -415,8 +412,5 @@ class Content @@ -415,8 +412,5 @@ class Content
$this->page->title->getValue(),
$this->page->title->getSubtitle(),
);
// Hide progressbar
$this->page->progressbar->hide();
}
}
Loading…
Cancel
Save