Improve formatting for an infobox when editing keyboard shortcuts in viewer

The box appears when the user has edited a shortcut and clicks 'OK' before
the shortcut is actually created.
This commit is contained in:
keatsandyeats 2018-12-18 20:11:59 -05:00
parent bf60631ce0
commit 3cfbf1c720

View File

@ -397,8 +397,8 @@ class ConfigDialog(QDialog, Ui_Dialog):
if self.shortcut_config.is_editing: if self.shortcut_config.is_editing:
from calibre.gui2 import info_dialog from calibre.gui2 import info_dialog
info_dialog(self, _('Still editing'), info_dialog(self, _('Still editing'),
_('You are in the middle of editing a keyboard shortcut' _('You are in the middle of editing a keyboard shortcut.'
' first complete that, by clicking outside the ' ' First complete that by clicking outside the'
' shortcut editing box.'), show=True) ' shortcut editing box.'), show=True)
return return
self.save_options(config()) self.save_options(config())