Skip to content

Commit

Permalink
Fix open customize Kindle window error
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Oct 14, 2023
1 parent 586d570 commit 1ed10f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_lemmas.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ def check_empty_kindle_gloss(self) -> None:
plugin_path = get_plugin_path()
klld_path = get_klld_path(plugin_path)
if klld_path is None:
gui = self.parent().parent()
gui = self.parent()
while gui.parent() is not None:
gui = gui.parent()
package_name = device_connected(gui, "KFX")
if not package_name:
device_not_found_dialog(self)
Expand Down

0 comments on commit 1ed10f3

Please sign in to comment.