mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
draft page info dialog features
This commit is contained in:
parent
71ae92cfaa
commit
96230ee476
5 changed files with 133 additions and 4 deletions
|
|
@ -91,6 +91,7 @@ impl Request {
|
|||
});
|
||||
|
||||
entry.connect_icon_release({
|
||||
let i = info.clone();
|
||||
let p = profile.clone();
|
||||
move |e, position| match position {
|
||||
EntryIconPosition::Primary => {
|
||||
|
|
@ -100,8 +101,14 @@ impl Request {
|
|||
show_identity_dialog(e, &p)
|
||||
}
|
||||
}
|
||||
EntryIconPosition::Secondary => e.emit_activate(),
|
||||
_ => todo!(), // unexpected
|
||||
EntryIconPosition::Secondary => {
|
||||
if is_focused(e) {
|
||||
e.emit_activate()
|
||||
} else {
|
||||
i.borrow().dialog(Some(e));
|
||||
}
|
||||
}
|
||||
_ => panic!(),
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue