mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
implement new tab position enum
This commit is contained in:
parent
57cdc4cee9
commit
23e4e83e45
6 changed files with 89 additions and 44 deletions
|
|
@ -8,7 +8,10 @@ use database::Database;
|
|||
use page::Page;
|
||||
use widget::Widget;
|
||||
|
||||
use crate::app::browser::{window::Action as WindowAction, Action as BrowserAction};
|
||||
use crate::app::browser::{
|
||||
window::action::{Action as WindowAction, Position},
|
||||
Action as BrowserAction,
|
||||
};
|
||||
use adw::TabView;
|
||||
use gtk::{
|
||||
glib::{uuid_string_random, GString},
|
||||
|
|
@ -34,7 +37,7 @@ impl Item {
|
|||
browser_action: Rc<BrowserAction>,
|
||||
window_action: Rc<WindowAction>,
|
||||
// Options tuple @TODO struct?
|
||||
options: (Option<i32>, Option<String>, bool, bool, bool, bool),
|
||||
options: (Position, Option<String>, bool, bool, bool, bool),
|
||||
) -> Self {
|
||||
// Get item options from tuple
|
||||
let (position, request, is_pinned, is_selected, is_attention, is_load) = options;
|
||||
|
|
@ -150,7 +153,7 @@ impl Item {
|
|||
window_action.clone(),
|
||||
// Options tuple
|
||||
(
|
||||
None,
|
||||
Position::End,
|
||||
None,
|
||||
record.is_pinned,
|
||||
record.is_selected,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue