From 5c3ada2362254be115b9d7fb90b9b22052fd4372 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 19 Jul 2024 10:54:39 +0300 Subject: [PATCH] implement previous session restore --- src/Entity/Browser/Container/Tab.php | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/Entity/Browser/Container/Tab.php b/src/Entity/Browser/Container/Tab.php index af3d8a2b..9a100c68 100644 --- a/src/Entity/Browser/Container/Tab.php +++ b/src/Entity/Browser/Container/Tab.php @@ -33,18 +33,13 @@ class Tab $this->_scrollable ); - // Init previous session @TODO - $this->appendPage( - 'gemini://yggverse.cities.yesterweb.org' - ); - - $this->appendPage( - 'gemini://tlgs.one' - ); - - $this->appendPage( - 'nex://nightfall.city' - ); + // Restore previous session + foreach ($this->container->browser->database->getSession() as $session) + { + $this->appendPage( + $session->request + ); + } // Init events $this->gtk->connect(