mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-06 02:29:57 +02:00
Merge branch '104-fix-share-url-printing-on-windows' into 'master'
Resolve "Fix share URL printing on Windows" Closes #104 See merge request timvisee/ffsend!37
This commit is contained in:
commit
fa0ecf61bc
1 changed files with 11 additions and 3 deletions
|
@ -59,9 +59,17 @@ impl<'a> ProgressReporter for ProgressBar<'a> {
|
||||||
|
|
||||||
/// Finish the progress.
|
/// Finish the progress.
|
||||||
fn finish(&mut self) {
|
fn finish(&mut self) {
|
||||||
self.progress_bar
|
let progress_bar = self
|
||||||
|
.progress_bar
|
||||||
.as_mut()
|
.as_mut()
|
||||||
.expect("progress bar not yet instantiated")
|
.expect("progress bar not yet instantiated");
|
||||||
.finish_print(self.msg_finish);
|
|
||||||
|
#[cfg(not(target_os = "windows"))]
|
||||||
|
progress_bar.finish_print(self.msg_finish);
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
{
|
||||||
|
progress_bar.finish_println(self.msg_finish);
|
||||||
|
eprintln!();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue