From 99d30c57c7bf032c42b61ce253d9eecb8fb815fc Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 11 Dec 2024 17:33:57 +0200 Subject: [PATCH] make initial history snap on page restore --- src/app/browser/window/tab/item/page.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index eeb1ccfb..defecd37 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -313,6 +313,9 @@ impl Page { // Delegate restore action to the item childs self.meta.restore(transaction, &record.id)?; self.navigation.restore(transaction, &record.id)?; + // Make initial page history snap using `navigation` values restored + // * just to have back/forward navigation ability + snap_history(self.navigation.clone()); } } Err(e) => return Err(e.to_string()),