mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-27 07:34:57 +02:00
The 'Replace recipe?' question_dialog preference gets saved.
This commit is contained in:
parent
b891882126
commit
989f919a40
1 changed files with 1 additions and 4 deletions
|
|
@ -10,12 +10,11 @@
|
|||
from calibre.gui2.dialogs.user_profiles_ui import Ui_Dialog
|
||||
from calibre.gui2 import error_dialog, question_dialog, open_url, \
|
||||
choose_files, ResizableDialog, NONE, open_local_file, \
|
||||
info_dialog
|
||||
info_dialog, gprefs
|
||||
from calibre.gui2.widgets import PythonHighlighter
|
||||
from calibre.ptempfile import PersistentTemporaryFile
|
||||
from calibre.utils.icu import sort_key
|
||||
from calibre.utils.opml import OPML
|
||||
from calibre.utils.config import JSONConfig
|
||||
|
||||
class CustomRecipeModel(QAbstractListModel):
|
||||
|
||||
|
|
@ -356,7 +355,6 @@ def load(self):
|
|||
self.clear()
|
||||
|
||||
def opml_import(self):
|
||||
|
||||
opml_files = choose_files(self, 'OPML chooser dialog',
|
||||
_('Select OPML file'), filters=[(_('OPML'), ['opml'])] )
|
||||
|
||||
|
|
@ -398,7 +396,6 @@ def opml_import(self):
|
|||
self.clear()
|
||||
|
||||
# reset the question_dialog
|
||||
gprefs = JSONConfig('gui')
|
||||
auto_skip = gprefs.get('questions_to_auto_skip', [])
|
||||
if skip_dialog_name in auto_skip:
|
||||
auto_skip.remove(skip_dialog_name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue