mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-20 15:10:31 +00:00
Simplify boolean
This commit is contained in:
parent
ba164d1358
commit
b110f1cf13
9 changed files with 9 additions and 9 deletions
|
@ -41,7 +41,7 @@ class ContextMenu(xbmcgui.WindowXMLDialog):
|
|||
self._options = options
|
||||
|
||||
def is_selected(self):
|
||||
return True if self.selected_option else False
|
||||
return bool(self.selected_option)
|
||||
|
||||
def get_selected(self):
|
||||
return self.selected_option
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue