Generate summary differently depending on profile
Former-commit-id: 69909c0ba08ff806081bcdd67969e1f44293f638
This commit is contained in:
parent
6b63422efb
commit
20b67e53d2
@ -455,10 +455,13 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
|
||||
if factId is None:
|
||||
return False
|
||||
|
||||
if markup['reading']:
|
||||
summary = u'{expression} [{reading}]'.format(**markup)
|
||||
if profile == 'vocab':
|
||||
if markup['reading']:
|
||||
summary = u'{expression} [{reading}]'.format(**markup)
|
||||
else:
|
||||
summary = markup['expression']
|
||||
else:
|
||||
summary = markup['expression']
|
||||
summary = markup['character']
|
||||
|
||||
self.addedFacts.append(factId)
|
||||
self.listDefinitions.addItem(summary)
|
||||
|
Loading…
Reference in New Issue
Block a user