support browser icons
This commit is contained in:
@@ -14,6 +14,7 @@ pub struct BrowserView {
|
||||
pub browser_id: String,
|
||||
pub browser_family_id: Option<String>,
|
||||
pub browser_name: String,
|
||||
pub icon_key: Option<String>,
|
||||
pub data_root: String,
|
||||
pub profiles: Vec<ProfileSummary>,
|
||||
pub extensions: Vec<ExtensionSummary>,
|
||||
@@ -70,6 +71,7 @@ pub struct BrowserConfigEntry {
|
||||
pub id: String,
|
||||
pub source: BrowserConfigSource,
|
||||
pub browser_family_id: Option<String>,
|
||||
pub icon_key: Option<String>,
|
||||
pub name: String,
|
||||
pub executable_path: String,
|
||||
pub user_data_path: String,
|
||||
@@ -87,6 +89,7 @@ pub enum BrowserConfigSource {
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct CreateCustomBrowserConfigInput {
|
||||
pub name: String,
|
||||
pub icon_key: Option<String>,
|
||||
pub executable_path: String,
|
||||
pub user_data_path: String,
|
||||
}
|
||||
@@ -102,6 +105,8 @@ pub struct StoredBrowserConfigs {
|
||||
pub struct CustomBrowserConfigRecord {
|
||||
pub id: String,
|
||||
pub name: String,
|
||||
#[serde(default)]
|
||||
pub icon_key: Option<String>,
|
||||
pub executable_path: String,
|
||||
pub user_data_path: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user