fonol / anki-search-inside-add-card

An add-on providing full-text-search and PDF reading functionality to Anki's Add card dialog
https://ankiweb.net/shared/info/1781298089
GNU Affero General Public License v3.0
178 stars 24 forks source link

Done button dosen't work in anki 23.10 #373

Closed Vilhelm-Ian closed 11 months ago

Vilhelm-Ian commented 11 months ago

Describe the bug When I press the done button for a pdf it gives me an error message. And dosen't load the next book in the que

To Reproduce Steps to reproduce the behavior:

  1. Install anki 23.10
  2. Open first item in que
  3. press done

Environment (please complete the following information):

** ERROR log

AttributeError: 'DoneDialog' object has no attribute 'exec_'

I checked the code and Done Dialog has no Method exec_ . I tried added it to just so it won't crash

def exec_(self)

just so it won't crash. But now when I press Done nothing happens

Vilhelm-Ian commented 11 months ago

https://github.com/fonol/anki-search-inside-add-card/commit/c3ec333f9d708c36862e6af5380dcc57eac6e013

this commit fixes it