fix(tui): show spinner for indeterminate progress
This commit is contained in:
1 parent
b3c17b58c9
commit
6e898b8c45
2 files changed
+20
-2
No files matched your search
@@ -109,6 +109,7 @@ fn update_task_action(id: u64, text: String) {
|
||||
if let Ok(mut state) = PROGRESS.lock() {
|
||||
if let Some(task) = state.tasks.get_mut(&id) {
|
||||
task.action = text;
|
||||
task.progress = None;
|
||||
}
|
||||
refresh_visible(&mut state);
|
||||
}
|
||||
@@ -161,6 +162,7 @@ pub fn set_action(text: impl Into<String>) {
|
||||
Ok(mut state) => {
|
||||
state.legacy_active = true;
|
||||
state.current_action = Some(text.clone());
|
||||
state.progress = None;
|
||||
super::request_redraw();
|
||||
}
|
||||
Err(e) => {
|
||||
|
||||
Reference in new issue
Block a user