Add setting to show/hide title bar (#37428)

Closes #5120

Release Notes:

- Added settings for hiding and showing title bar



https://github.com/user-attachments/assets/aaed52d0-6278-4544-8932-c6bab531512a
This commit is contained in:
Ben Gubler
2025-09-13 22:54:00 +00:00
committed by GitHub
parent 01f181339f
commit 13113ab311
6 changed files with 67 additions and 4 deletions
+5
View File
@@ -2043,6 +2043,11 @@ impl Workspace {
cx.notify();
}
pub fn clear_titlebar_item(&mut self, _: &mut Window, cx: &mut Context<Self>) {
self.titlebar_item = None;
cx.notify();
}
pub fn set_prompt_for_new_path(&mut self, prompt: PromptForNewPath) {
self.on_prompt_for_new_path = Some(prompt)
}