mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
enable identity selection for Titan protocol
This commit is contained in:
parent
b437a9d190
commit
ed0172be68
3 changed files with 6 additions and 9 deletions
|
|
@ -203,7 +203,7 @@ impl Widget {
|
|||
self.entry.set_primary_icon_name(Some(name));
|
||||
self.entry.set_primary_icon_tooltip_text(Some(tooltip));
|
||||
}
|
||||
PrimaryIcon::Gemini { name, tooltip } => {
|
||||
PrimaryIcon::Gemini { name, tooltip } | PrimaryIcon::Titan { name, tooltip } => {
|
||||
self.entry.set_primary_icon_activatable(true);
|
||||
self.entry.set_primary_icon_sensitive(true);
|
||||
self.entry.set_primary_icon_name(Some(name));
|
||||
|
|
@ -222,10 +222,6 @@ impl Widget {
|
|||
self.entry.set_primary_icon_name(Some(name));
|
||||
self.entry.set_primary_icon_tooltip_text(Some(tooltip));
|
||||
}
|
||||
PrimaryIcon::Titan { name, tooltip } => {
|
||||
self.entry.set_primary_icon_name(Some(name));
|
||||
self.entry.set_primary_icon_tooltip_text(Some(tooltip));
|
||||
}
|
||||
}
|
||||
|
||||
// Update progress
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ pub enum PrimaryIcon<'a> {
|
|||
},
|
||||
Titan {
|
||||
name: &'a str,
|
||||
tooltip: &'a str,
|
||||
tooltip: (&'a str, &'a str),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ pub fn from(request: &str) -> PrimaryIcon {
|
|||
if request.starts_with("titan:") {
|
||||
return PrimaryIcon::Titan {
|
||||
name: "document-send-symbolic",
|
||||
tooltip: "Titan input",
|
||||
tooltip: ("Guest titan input", "User titan input"),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue