mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Improve performance when cleaning user categories
This commit is contained in:
parent
05cc7aa3f1
commit
752d9f350d
@ -1196,7 +1196,8 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
||||
else:
|
||||
new_cats['.'.join(comps)] = user_cats[k]
|
||||
try:
|
||||
self.prefs.set('user_categories', new_cats)
|
||||
if new_cats != user_cats:
|
||||
self.prefs.set('user_categories', new_cats)
|
||||
except:
|
||||
pass
|
||||
return new_cats
|
||||
|
Loading…
x
Reference in New Issue
Block a user