mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
implement is_attention tab state decorator
This commit is contained in:
parent
f6d015c8c1
commit
8f9f5d3eaa
5 changed files with 87 additions and 22 deletions
|
|
@ -34,10 +34,10 @@ impl Item {
|
|||
browser_action: Rc<BrowserAction>,
|
||||
window_action: Rc<WindowAction>,
|
||||
// Options tuple @TODO struct?
|
||||
options: (Option<i32>, Option<String>, bool, bool, bool),
|
||||
options: (Option<i32>, Option<String>, bool, bool, bool, bool),
|
||||
) -> Self {
|
||||
// Get item options from tuple
|
||||
let (position, request, is_pinned, is_selected, is_load) = options;
|
||||
let (position, request, is_pinned, is_selected, _is_attention, is_load) = options;
|
||||
|
||||
// Generate unique ID for new page components
|
||||
let id = uuid_string_random();
|
||||
|
|
@ -150,7 +150,14 @@ impl Item {
|
|||
browser_action.clone(),
|
||||
window_action.clone(),
|
||||
// Options tuple
|
||||
(None, None, record.is_pinned, record.is_selected, false),
|
||||
(
|
||||
None,
|
||||
None,
|
||||
record.is_pinned,
|
||||
record.is_selected,
|
||||
false,
|
||||
false,
|
||||
),
|
||||
));
|
||||
|
||||
// Delegate restore action to the item childs
|
||||
|
|
|
|||
|
|
@ -294,7 +294,8 @@ impl Reader {
|
|||
false,
|
||||
false,
|
||||
true,
|
||||
); // @TODO
|
||||
true,
|
||||
);
|
||||
}
|
||||
// Scheme not supported, delegate
|
||||
_ => UriLauncher::new(&uri.to_str()).launch(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue