From d31148bb4da658423be0305e9a5f3d0e55ccb37b Mon Sep 17 00:00:00 2001 From: Filipe Rodrigues Date: Mon, 11 Mar 2024 01:45:15 +0000 Subject: [PATCH] Fixed initial page title being lost due to mistake in `dynatos_title`. --- dynatos-title/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dynatos-title/src/lib.rs b/dynatos-title/src/lib.rs index f2ec084..c8fded3 100644 --- a/dynatos-title/src/lib.rs +++ b/dynatos-title/src/lib.rs @@ -30,15 +30,14 @@ impl Title { { let title = title.into(); - // Set and add the title to the stack - self::set_title(&title); let title_idx = TITLE_STACK.with_borrow_mut(|stack| { // If no title exists, add the current one if stack.is_empty() { stack.push(Some(self::cur_title())); } - // Then add ours + // Then set and add ours + self::set_title(&title); let title_idx = stack.len(); stack.push(Some(title));