|
|
#1 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 2062
Join Date: Oct 2021
Device: Kobo Libra 2
|
Unable to close the dictionary (widget) from plugin patch
I have created a plugin patch for the VocabBuilder plugin.. essentially patching the "onDictButtonReady" function.
The problem i am having is closing the dictionary window upon tapping the "Add to vocabulary builder" button -- to save the extra "close" button tap to close the widget. DictQuickLookup nClose() crashes KOReader.So.. what needs be done beyond the "require" for its module? Or is some other approach needed to close the dictionary? |
|
|
|
|
|
#2 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 2062
Join Date: Oct 2021
Device: Kobo Libra 2
|
Found the answer.. at least what appears to work. Instead of using DictQuickLookup:onClose..
UIManager:sendEvent(Event:new("Close")) |
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is there a way to patch a plugin? | sdothum | KOReader | 16 | 06-20-2025 10:09 PM |
| Kindle 4 Unable to close text editor | Thefirebeast | Amazon Kindle | 3 | 06-23-2021 06:02 PM |
| Aura H2O Help with dictionary font size in latest patch | Skydog | Kobo Developer's Corner | 4 | 05-18-2020 11:31 PM |
| Dictionary plugin in Sigil? For example Oxford-English Dictionary. | Rindr | Plugins | 2 | 03-04-2018 12:11 PM |
| Unable to use dictionary | AlfonsVH | OpenInkpot | 10 | 11-24-2009 03:09 PM |