title_bar: Add show_user_picture setting to let users hide their profile picture (#21526)
Fixes #21464 Closes #21464 Release Notes: - Added `show_user_picture` setting (default: true) to allow users to hide their profile picture in titlebar.
This commit is contained in:
parent
5948ea217b
commit
706372fe4e
4 changed files with 14 additions and 1 deletions
|
@ -19,6 +19,7 @@ pub struct WorkspaceSettings {
|
|||
pub when_closing_with_no_tabs: CloseWindowWhenNoItems,
|
||||
pub use_system_path_prompts: bool,
|
||||
pub command_aliases: HashMap<String, String>,
|
||||
pub show_user_picture: bool,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Serialize, Deserialize, JsonSchema)]
|
||||
|
@ -128,6 +129,10 @@ pub struct WorkspaceSettingsContent {
|
|||
///
|
||||
/// Default: true
|
||||
pub command_aliases: Option<HashMap<String, String>>,
|
||||
/// Whether to show user avatar in the title bar.
|
||||
///
|
||||
/// Default: true
|
||||
pub show_user_picture: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue