This commit is contained in:
Matthew Zeng
2026-02-11 16:31:16 -08:00
parent 55d45f3fcf
commit 81addf0670
6 changed files with 16 additions and 6 deletions

View File

@@ -195,7 +195,7 @@
},
"isEnabled": {
"default": true,
"description": "Whether this app is enabled in the loaded config.",
"description": "Whether this app is enabled in config.toml. Example: ```toml [app.bad_app] enabled = false ```",
"type": "boolean"
},
"logoUrl": {

View File

@@ -10060,7 +10060,7 @@
},
"isEnabled": {
"default": true,
"description": "Whether this app is enabled in the loaded config.",
"description": "Whether this app is enabled in config.toml. Example: ```toml [app.bad_app] enabled = false ```",
"type": "boolean"
},
"logoUrl": {

View File

@@ -31,7 +31,7 @@
},
"isEnabled": {
"default": true,
"description": "Whether this app is enabled in the loaded config.",
"description": "Whether this app is enabled in config.toml. Example: ```toml [app.bad_app] enabled = false ```",
"type": "boolean"
},
"logoUrl": {

View File

@@ -31,7 +31,7 @@
},
"isEnabled": {
"default": true,
"description": "Whether this app is enabled in the loaded config.",
"description": "Whether this app is enabled in config.toml. Example: ```toml [app.bad_app] enabled = false ```",
"type": "boolean"
},
"logoUrl": {

View File

@@ -7,6 +7,11 @@
*/
export type AppInfo = { id: string, name: string, description: string | null, logoUrl: string | null, logoUrlDark: string | null, distributionChannel: string | null, installUrl: string | null, isAccessible: boolean,
/**
* Whether this app is enabled in the loaded config.
* Whether this app is enabled in config.toml.
* Example:
* ```toml
* [app.bad_app]
* enabled = false
* ```
*/
isEnabled: boolean, };

View File

@@ -1223,7 +1223,12 @@ pub struct AppInfo {
pub install_url: Option<String>,
#[serde(default)]
pub is_accessible: bool,
/// Whether this app is enabled in the loaded config.
/// Whether this app is enabled in config.toml.
/// Example:
/// ```toml
/// [app.bad_app]
/// enabled = false
/// ```
#[serde(default = "default_enabled")]
pub is_enabled: bool,
}