mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15: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
|
|
@ -39,6 +39,7 @@ impl Item {
|
|||
request: Option<String>,
|
||||
is_pinned: bool,
|
||||
is_selected: bool,
|
||||
is_load: bool,
|
||||
) -> Self {
|
||||
// Generate unique ID for new page components
|
||||
let id = uuid_string_random();
|
||||
|
|
@ -72,8 +73,11 @@ impl Item {
|
|||
.widget()
|
||||
.gobject()
|
||||
.set_text(&text);
|
||||
page.load(true);
|
||||
} // @TODO load optionally
|
||||
|
||||
if is_load {
|
||||
page.load(true);
|
||||
}
|
||||
}
|
||||
|
||||
action.load().connect_activate({
|
||||
let page = page.clone();
|
||||
|
|
@ -157,6 +161,7 @@ impl Item {
|
|||
None,
|
||||
record.is_pinned,
|
||||
record.is_selected,
|
||||
false,
|
||||
));
|
||||
|
||||
// Delegate restore action to the item childs
|
||||
|
|
|
|||
|
|
@ -293,6 +293,7 @@ impl Reader {
|
|||
Some(uri.to_string()),
|
||||
false,
|
||||
false,
|
||||
true,
|
||||
); // @TODO
|
||||
}
|
||||
// Scheme not supported, delegate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue