def create_from_links(self): toc = from_links(self.ebook) if len(toc) == 0: return error_dialog( self, _('No items found'), _('No links were found that could be added to the Table of Contents.' ), show=True) self.insert_toc_fragment(toc)
def create_from_links(self): toc = from_links(self.ebook) if len(toc) == 0: return error_dialog(self, _('No items found'), _('No links were found that could be added to the Table of Contents.'), show=True) self.insert_toc_fragment(toc)