mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Send to device: Use default save template when driver specific one is empty or unspecified
This commit is contained in:
commit
425cc3befc
@ -805,7 +805,7 @@ class Device(DeviceConfig, DevicePlugin):
|
|||||||
break
|
break
|
||||||
|
|
||||||
settings = self.settings()
|
settings = self.settings()
|
||||||
template = settings.save_template
|
template = self.save_template()
|
||||||
use_subdirs = self.SUPPORTS_SUB_DIRS and settings.use_subdirs
|
use_subdirs = self.SUPPORTS_SUB_DIRS and settings.use_subdirs
|
||||||
|
|
||||||
fname = sanitize(fname)
|
fname = sanitize(fname)
|
||||||
|
@ -70,6 +70,14 @@ class DeviceConfig(object):
|
|||||||
def settings(cls):
|
def settings(cls):
|
||||||
return cls._config().parse()
|
return cls._config().parse()
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def save_template(cls):
|
||||||
|
st = cls.settings().save_template
|
||||||
|
if st:
|
||||||
|
return st
|
||||||
|
else:
|
||||||
|
return cls._default_save_template()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def customization_help(cls, gui=False):
|
def customization_help(cls, gui=False):
|
||||||
return cls.HELP_MESSAGE
|
return cls.HELP_MESSAGE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user