flush config on sort order change

This commit is contained in:
Damien Elmes 2020-03-20 15:44:35 +10:00
parent 2c362d6991
commit 1318118461

View File

@ -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()