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));