This commit is contained in:
Sebs 2026-05-23 11:45:43 +08:00 committed by GitHub
commit 343122c04f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,7 @@ impl Run for Edit {
}
None => {
db.sort_by_score(now);
db.mark_dirty();
db.save()?;
Self::get_fzf()?.wait()?;
Ok(())

View File

@ -177,6 +177,9 @@ impl Database {
dir1.score(now).total_cmp(&dir2.score(now))
})
});
}
pub fn mark_dirty(&mut self) {
self.with_dirty_mut(|dirty| *dirty = true);
}