Open settings pages from scoped search
This commit is contained in:
@@ -4,7 +4,7 @@ use crate::{
|
||||
CoreError,
|
||||
navigation::{
|
||||
downloads_url, history_url, move_tab_space_name, new_profile_name, new_space_name,
|
||||
search_url, settings_url, space_icon, switch_profile_name,
|
||||
search_url, settings_page_url, settings_url, space_icon, switch_profile_name,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -44,6 +44,12 @@ impl BrowserCore {
|
||||
self.command_query.clear();
|
||||
}
|
||||
}
|
||||
CommandIntent::ScopedSearch { scope: CommandScope::Settings, query } => {
|
||||
if let Some(url) = settings_page_url(query)? {
|
||||
self.open_tab(url);
|
||||
self.command_query.clear();
|
||||
}
|
||||
}
|
||||
CommandIntent::ScopedSearch { scope: CommandScope::Archive, query }
|
||||
if self.restore_archived_tab_match(query)?.is_some() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user