mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Delete Activity entry for synced shelves
When deleting shelves that have been synced, the Activity entry for the shelf was not being deleted. This left a tile for the shelf on the home screen of the Glo and AuraHD. Fixes #1208159 [Delete Activity entry for synced shelves on Kobo devices](https://bugs.launchpad.net/calibre/+bug/1208159)
This commit is contained in:
parent
eb9714c761
commit
ca0ee594f9
@ -2490,7 +2490,8 @@ class KOBOTOUCH(KOBO):
|
|||||||
"WHERE Type = 'Shelf' "
|
"WHERE Type = 'Shelf' "
|
||||||
"AND NOT EXISTS "
|
"AND NOT EXISTS "
|
||||||
"(SELECT 1 FROM Shelf "
|
"(SELECT 1 FROM Shelf "
|
||||||
"WHERE Shelf.Name = Activity.Id)"
|
"WHERE Shelf.Name = Activity.Id "
|
||||||
|
"AND Shelf._IsDeleted = 'false')"
|
||||||
)
|
)
|
||||||
|
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user