mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-08-29 16:02:10 +00:00
append just one blank page if nothing to restore
This commit is contained in:
parent
09e3d75fb3
commit
e0f5501067
@ -205,6 +205,11 @@ impl Tab {
|
|||||||
// Append new page
|
// Append new page
|
||||||
self.append();
|
self.append();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Append just one blank page if nothing to restore
|
||||||
|
if self.index.borrow().is_empty() {
|
||||||
|
self.append();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Err(e) => return Err(e.to_string()),
|
Err(e) => return Err(e.to_string()),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user