Skip to content

Commit cac66ba

Browse files
committed
Register the setting
1 parent 57a45d8 commit cac66ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/workspace/src/item.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pub struct ItemSettings {
4242
pub close_position: ClosePosition,
4343
pub activate_on_close: ActivateOnClose,
4444
pub file_icons: bool,
45+
pub always_show_close_button: bool,
4546
}
4647

4748
#[derive(Deserialize)]
@@ -85,6 +86,10 @@ pub struct ItemSettingsContent {
8586
///
8687
/// Default: history
8788
pub activate_on_close: Option<ActivateOnClose>,
89+
/// Whether to always show the close button on tabs.
90+
///
91+
/// Default: false
92+
always_show_close_button: Option<bool>,
8893
}
8994

9095
#[derive(Clone, Default, Serialize, Deserialize, JsonSchema)]

0 commit comments

Comments
 (0)