append just one blank page if nothing to restore

This commit is contained in:
yggverse 2024-10-11 03:27:17 +03:00
parent 09e3d75fb3
commit e0f5501067

View File

@ -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()),
}