From e1455e57720b1869781f66e6b283212d93daf2a4 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 9 Jul 2024 04:26:11 +0300 Subject: [PATCH] move progressbar initiation to the page entity --- src/Entity/Browser/Container/Page.php | 7 +++++++ src/Entity/Browser/Container/Page/Content.php | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Entity/Browser/Container/Page.php b/src/Entity/Browser/Container/Page.php index 886e2eac..edc3f8ba 100644 --- a/src/Entity/Browser/Container/Page.php +++ b/src/Entity/Browser/Container/Page.php @@ -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(); } } \ No newline at end of file diff --git a/src/Entity/Browser/Container/Page/Content.php b/src/Entity/Browser/Container/Page/Content.php index 41815752..4adf9a3b 100644 --- a/src/Entity/Browser/Container/Page/Content.php +++ b/src/Entity/Browser/Container/Page/Content.php @@ -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 $this->page->title->getValue(), $this->page->title->getSubtitle(), ); - - // Hide progressbar - $this->page->progressbar->hide(); } } \ No newline at end of file