mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
87a8a31fd8
commit
1e82b4fcef
@ -17,7 +17,6 @@ from calibre.ebooks.metadata import authors_to_string, MetaInformation, \
|
||||
title_sort
|
||||
from calibre.ebooks.metadata.book.base import Metadata
|
||||
from calibre.ebooks.metadata.epub import set_metadata
|
||||
from calibre.gui2.dialogs.confirm_delete import config_name
|
||||
from calibre.library.server.utils import strftime
|
||||
from calibre.utils.config import config_dir, dynamic, prefs
|
||||
from calibre.utils.date import now, parse_date
|
||||
@ -80,6 +79,7 @@ class AppleOpenFeedback(OpenFeedback):
|
||||
|
||||
def do_it(self, return_code):
|
||||
if return_code == self.Accepted:
|
||||
from calibre.gui2.dialogs.confirm_delete import config_name
|
||||
self.log.info(" Apple driver ENABLED")
|
||||
dynamic[config_name(self.plugin.DISPLAY_DISABLE_DIALOG)] = False
|
||||
else:
|
||||
@ -808,6 +808,7 @@ class ITUNES(DriverBase):
|
||||
|
||||
# Display a dialog recommending using 'Connect to iTunes' if user hasn't
|
||||
# previously disabled the dialog
|
||||
from calibre.gui2.dialogs.confirm_delete import config_name
|
||||
if dynamic.get(config_name(self.DISPLAY_DISABLE_DIALOG),True):
|
||||
raise AppleOpenFeedback(self)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user