make initial history snap on page restore

This commit is contained in:
yggverse 2024-12-11 17:33:57 +02:00
parent ea3aab4d68
commit 99d30c57c7

View File

@ -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()),