mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 13:44:56 +01:00
Edit book: Allow skipping confirmation dialog when marking non-first file as cover page
This commit is contained in:
parent
eac58bfc9e
commit
a63687df2a
1 changed files with 4 additions and 1 deletions
|
|
@ -661,7 +661,10 @@ def mark_as_titlepage(self, name):
|
|||
move_to_start = question_dialog(self, _('Not first item'), _(
|
||||
'%s is not the first text item. You should only mark the'
|
||||
' first text item as cover. Do you want to make it the'
|
||||
' first item?') % elided_text(name))
|
||||
' first item?') % elided_text(name),
|
||||
skip_dialog_name='edit-book-mark-as-titlepage-move-confirm',
|
||||
skip_dialog_skip_precheck=False
|
||||
)
|
||||
self.mark_requested.emit(name, 'titlepage:%r' % move_to_start)
|
||||
|
||||
def keyPressEvent(self, ev):
|
||||
|
|
|
|||
Loading…
Reference in a new issue