This commit is contained in:
itsaphel 2025-08-26 14:02:39 -04:00 committed by GitHub
commit 341d290d43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -1069,7 +1069,9 @@ impl ProjectSearchView {
let will_autosave = can_autosave
&& matches!(
autosave_setting,
AutosaveSetting::OnFocusChange | AutosaveSetting::OnWindowChange
AutosaveSetting::OnFocusChange
| AutosaveSetting::OnWindowChange
| AutosaveSetting::AfterDelay { .. }
);
let is_dirty = self.is_dirty(cx);

View file

@ -2063,7 +2063,9 @@ impl Pane {
let will_autosave = cx.update(|_window, cx| {
matches!(
item.workspace_settings(cx).autosave,
AutosaveSetting::OnFocusChange | AutosaveSetting::OnWindowChange
AutosaveSetting::OnFocusChange
| AutosaveSetting::OnWindowChange
| AutosaveSetting::AfterDelay { .. }
) && item.can_autosave(cx)
})?;
if !will_autosave {