Merge #1516: Revert 'hide progress bar once export completed'
036550c8b73edd25963ba13849a7537bc7df1ed1 Revert 'hide progress bar once export completed' (Michael Mallan)
Pull request description:
This reverts commit 98195e03b6878cd31e1d34ba246700b6ae95ceb1.
The progress bar can disappear too quickly.
ACKs for top commit:
edouardparis:
utACK 036550c8b73edd25963ba13849a7537bc7df1ed1
Tree-SHA512: 00dedcf7cde2ed735f67168cb1c6c1df2afb8687bd3c490505a2aa56b5ab574ddb02d03881bca3ca5ab6a3ab3549c29f4c9c8f979beb0a3f46805b9d3f189f6c
This commit is contained in:
commit
af7dc61fdc
@ -54,18 +54,16 @@ pub fn export_modal<'a>(
|
||||
100.0
|
||||
}
|
||||
};
|
||||
let progress_bar_row = (*state != ExportState::Ended).then_some(
|
||||
Row::new()
|
||||
.push(Space::with_width(30))
|
||||
.push(progress_bar(0.0..=100.0, p))
|
||||
.push(Space::with_width(30)),
|
||||
);
|
||||
let progress_bar_row = Row::new()
|
||||
.push(Space::with_width(30))
|
||||
.push(progress_bar(0.0..=100.0, p))
|
||||
.push(Space::with_width(30));
|
||||
card::simple(
|
||||
Column::new()
|
||||
.spacing(10)
|
||||
.push(Container::new(h4_bold(format!("Export {export_type}"))).width(Length::Fill))
|
||||
.push(Space::with_height(Length::Fill))
|
||||
.push_maybe(progress_bar_row)
|
||||
.push(progress_bar_row)
|
||||
.push(Space::with_height(Length::Fill))
|
||||
.push(Row::new().push(text(msg)))
|
||||
.push(Space::with_height(Length::Fill))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user