mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
In device view, make "waiting to sync" icon have precedence over "matched" icon
This commit is contained in:
parent
1c8cdbe9ff
commit
bb94f0007b
@ -1545,10 +1545,10 @@ class DeviceBooksModel(BooksModel): # {{{
|
|||||||
self.db.supports_collections()):
|
self.db.supports_collections()):
|
||||||
return QVariant(_("Double click to <b>edit</b> me<br><br>"))
|
return QVariant(_("Double click to <b>edit</b> me<br><br>"))
|
||||||
elif role == Qt.DecorationRole and cname == 'inlibrary':
|
elif role == Qt.DecorationRole and cname == 'inlibrary':
|
||||||
if self.db[self.map[row]].in_library:
|
if hasattr(self.db[self.map[row]], 'in_library_waiting'):
|
||||||
return QVariant(self.bool_yes_icon)
|
|
||||||
elif hasattr(self.db[self.map[row]], 'in_library_waiting'):
|
|
||||||
return QVariant(self.sync_icon)
|
return QVariant(self.sync_icon)
|
||||||
|
elif self.db[self.map[row]].in_library:
|
||||||
|
return QVariant(self.bool_yes_icon)
|
||||||
elif self.db[self.map[row]].in_library is not None:
|
elif self.db[self.map[row]].in_library is not None:
|
||||||
return QVariant(self.bool_no_icon)
|
return QVariant(self.bool_no_icon)
|
||||||
elif role == Qt.TextAlignmentRole:
|
elif role == Qt.TextAlignmentRole:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user