mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +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
|
// 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…
Add table
Add a link
Reference in a new issue