mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:33:30 +02:00
Fix #1784245 [last library highlight stops working when vacuuming the database](https://bugs.launchpad.net/calibre/+bug/1784245)
This commit is contained in:
parent
1d892d9c0d
commit
9205f188b9
1 changed files with 3 additions and 2 deletions
|
|
@ -321,9 +321,10 @@ def update_tooltip(self, count):
|
|||
a.setWhatsThis(tooltip)
|
||||
|
||||
def library_changed(self, db):
|
||||
self.prev_lname = self.last_lname
|
||||
lname = self.stats.library_used(db)
|
||||
self.last_lname = lname
|
||||
if lname != self.last_lname:
|
||||
self.prev_lname = self.last_lname
|
||||
self.last_lname = lname
|
||||
if len(lname) > 16:
|
||||
lname = lname[:16] + u'…'
|
||||
a = self.qaction
|
||||
|
|
|
|||
Loading…
Reference in a new issue