Skip to content

Commit

Permalink
fix is_dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
crisdut committed Oct 4, 2024
1 parent f73fb44 commit 7784a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/persistence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub trait Persisting: Sized {

fn is_persisted(&self) -> bool { self.persistence().is_some() }

fn is_dirty(&self) -> bool { self.persistence().map(|p| p.autosave).unwrap_or(true) }
fn is_dirty(&self) -> bool { self.persistence().map(|p| p.dirty).unwrap_or(true) }

fn mark_dirty(&mut self) {
if let Some(p) = self.persistence_mut() {
Expand Down

0 comments on commit 7784a19

Please sign in to comment.