mirror of
https://github.com/nikolassv/bartib
synced 2024-11-10 22:24:12 +00:00
show message for stopped activities
This commit is contained in:
parent
f7885eb345
commit
c597acbad5
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue