mirror of
https://github.com/lise-henry/crowbook
synced 2024-09-24 02:50:41 +02:00
Clear secondary bar on parsing error
This commit is contained in:
parent
582ccefa27
commit
62d10980ee
@ -206,6 +206,9 @@ impl Book {
|
|||||||
|
|
||||||
impl Drop for Book {
|
impl Drop for Book {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
|
if let Some(ref bar) = self.bars.secondbar {
|
||||||
|
bar.finish_and_clear();
|
||||||
|
}
|
||||||
if let Some(ref bar) = self.bars.mainbar {
|
if let Some(ref bar) = self.bars.mainbar {
|
||||||
bar.finish();
|
bar.finish();
|
||||||
let guard = mem::replace(&mut self.bars.guard, None);
|
let guard = mem::replace(&mut self.bars.guard, None);
|
||||||
|
Loading…
Reference in New Issue
Block a user