show message for stopped activities

This commit is contained in:
Nikolas Schmidt-Voigt 2021-07-22 12:59:05 +02:00
parent f7885eb345
commit c597acbad5

View file

@ -184,6 +184,13 @@ fn stop_all_running_activities(file_content: &mut [bartib_file::Line]) {
if let Ok(activity) = &mut line.activity {
if !activity.is_stopped() {
activity.stop();
println!(
"Stopped activity: \"{}\" ({}) started at {}",
activity.description,
activity.project,
activity.start.format(conf::FORMAT_DATETIME)
);
line.set_changed();
}
}