mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +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
|
||||
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…
x
Reference in New Issue
Block a user