mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Disable editing metadata on the device view when automatic update is chosen.
This commit is contained in:
parent
62a5b4d459
commit
abdee7d012
@ -1216,7 +1216,9 @@ class DeviceBooksModel(BooksModel): # {{{
|
|||||||
return done
|
return done
|
||||||
|
|
||||||
def set_editable(self, editable):
|
def set_editable(self, editable):
|
||||||
self.editable = editable
|
# Cannot edit if metadata is sent on connect. Reason: changes will
|
||||||
|
# revert to what is in the library on next connect.
|
||||||
|
self.editable = editable and prefs['manage_device_metadata']!='on_connect'
|
||||||
|
|
||||||
def set_search_restriction(self, s):
|
def set_search_restriction(self, s):
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user