mirror of
https://github.com/hacksider/Deep-Live-Cam.git
synced 2026-06-07 04:53:53 +02:00
a1722c7b2e
In Tk 9.0, Menu.index("end") returns "" instead of raising TclError
on empty menus. CustomTkinter's DropdownMenu._add_menu_commands
doesn't handle this case, causing a crash when creating CTkOptionMenu
widgets (e.g., the camera selector dropdown).
Add a monkey-patch that guards against the empty-string return value.