parent
10a1140d49
commit
b82d578922
2 changed files with 6 additions and 2 deletions
|
@ -1069,7 +1069,9 @@ impl ProjectSearchView {
|
||||||
let will_autosave = can_autosave
|
let will_autosave = can_autosave
|
||||||
&& matches!(
|
&& matches!(
|
||||||
autosave_setting,
|
autosave_setting,
|
||||||
AutosaveSetting::OnFocusChange | AutosaveSetting::OnWindowChange
|
AutosaveSetting::OnFocusChange
|
||||||
|
| AutosaveSetting::OnWindowChange
|
||||||
|
| AutosaveSetting::AfterDelay { .. }
|
||||||
);
|
);
|
||||||
|
|
||||||
let is_dirty = self.is_dirty(cx);
|
let is_dirty = self.is_dirty(cx);
|
||||||
|
|
|
@ -2063,7 +2063,9 @@ impl Pane {
|
||||||
let will_autosave = cx.update(|_window, cx| {
|
let will_autosave = cx.update(|_window, cx| {
|
||||||
matches!(
|
matches!(
|
||||||
item.workspace_settings(cx).autosave,
|
item.workspace_settings(cx).autosave,
|
||||||
AutosaveSetting::OnFocusChange | AutosaveSetting::OnWindowChange
|
AutosaveSetting::OnFocusChange
|
||||||
|
| AutosaveSetting::OnWindowChange
|
||||||
|
| AutosaveSetting::AfterDelay { .. }
|
||||||
) && item.can_autosave(cx)
|
) && item.can_autosave(cx)
|
||||||
})?;
|
})?;
|
||||||
if !will_autosave {
|
if !will_autosave {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue