mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
append just one blank page if nothing to restore
This commit is contained in:
parent
09e3d75fb3
commit
e0f5501067
1 changed files with 5 additions and 0 deletions
|
|
@ -205,6 +205,11 @@ impl Tab {
|
|||
// Append new page
|
||||
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()),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue