Skip to content

Commit 83a7a25

Browse files
properly change window title when closing a timeline, closes #99
1 parent 8c2bf0c commit 83a7a25

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/commands.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ pub fn handle_ui_command(cmd: UiCommand, ctx: &mut UiCommandContext<'_>) {
575575
);
576576
}
577577
UiCommand::CloseTimeline => {
578-
close_timeline(state, timelines_selector, timeline_list, suppress_selection, live_region, false);
578+
close_timeline(state, timelines_selector, timeline_list, suppress_selection, live_region, false, frame);
579579
}
580580
UiCommand::LoadMoreBackground => {
581581
if let Some(active) = state.timeline_manager.active_mut() {
@@ -2733,6 +2733,7 @@ fn close_timeline(
27332733
suppress_selection: &Cell<bool>,
27342734
live_region: &crate::ui::timeline_list::TimelineList,
27352735
use_history: bool,
2736+
frame: &Frame,
27362737
) {
27372738
let active_type = match state.timeline_manager.active() {
27382739
Some(t) => t.timeline_type.clone(),
@@ -2774,4 +2775,5 @@ fn close_timeline(
27742775
);
27752776
}
27762777
}
2778+
update_window_title(state, frame);
27772779
}

0 commit comments

Comments
 (0)