mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
add is_load state
This commit is contained in:
parent
7bc2d478d0
commit
3d9ea1d54e
5 changed files with 34 additions and 19 deletions
|
|
@ -105,6 +105,7 @@ impl Tab {
|
|||
request: Option<String>,
|
||||
is_pinned: bool,
|
||||
is_selected: bool,
|
||||
is_load: bool,
|
||||
) -> Rc<Item> {
|
||||
// Init new tab item
|
||||
let item = Rc::new(Item::new(
|
||||
|
|
@ -116,6 +117,7 @@ impl Tab {
|
|||
request,
|
||||
is_pinned,
|
||||
is_selected,
|
||||
is_load,
|
||||
));
|
||||
|
||||
// Register dynamically created tab components in the HashMap index
|
||||
|
|
@ -312,7 +314,7 @@ impl Tab {
|
|||
pub fn init(&self) {
|
||||
// Append just one blank page if no tabs available after last session restore
|
||||
if self.index.borrow().is_empty() {
|
||||
self.append(None, None, false, true);
|
||||
self.append(None, None, false, true, false);
|
||||
}
|
||||
|
||||
// @TODO other/child features..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue