mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
flush config on sort order change
This commit is contained in:
parent
2c362d6991
commit
1318118461
1 changed files with 4 additions and 0 deletions
|
@ -947,10 +947,14 @@ by clicking on one on the left."""
|
|||
if type == "noteFld":
|
||||
ord = not ord
|
||||
self.col.conf["sortBackwards"] = ord
|
||||
self.col.setMod()
|
||||
self.col.save()
|
||||
self.search()
|
||||
else:
|
||||
if self.col.conf["sortBackwards"] != ord:
|
||||
self.col.conf["sortBackwards"] = ord
|
||||
self.col.setMod()
|
||||
self.col.save()
|
||||
self.model.reverse()
|
||||
self.setSortIndicator()
|
||||
|
||||
|
|
Loading…
Reference in a new issue