mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15: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
|
|
@ -94,8 +94,9 @@ impl Item {
|
|||
move || {
|
||||
// Request should match valid URI for all drivers supported
|
||||
if let Some(uri) = page.navigation.request.uri() {
|
||||
// Rout by scheme
|
||||
if uri.scheme().to_lowercase() == "gemini" {
|
||||
// Route by scheme
|
||||
let scheme = uri.scheme();
|
||||
if scheme == "gemini" || scheme == "titan" {
|
||||
return identity::new_gemini(
|
||||
(&browser_action, &window_action),
|
||||
&profile,
|
||||
|
|
|
|||
|
|
@ -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