check if deck changed before saving
This commit is contained in:
parent
55277aa90a
commit
42d5d8071d
@ -59,6 +59,9 @@ impl Collection {
|
||||
usn: Usn,
|
||||
) -> Result<()> {
|
||||
self.prepare_deck_for_update(deck, usn)?;
|
||||
if deck == &original {
|
||||
return Ok(());
|
||||
}
|
||||
deck.set_modified(usn);
|
||||
let name_changed = original.name != deck.name;
|
||||
if name_changed {
|
||||
|
Loading…
Reference in New Issue
Block a user