Updated the error message changed previously
This commit is contained in:
parent
a45cd6e90d
commit
fdef354be9
@ -61,7 +61,7 @@ class lcdMenu:
|
|||||||
# some checks:
|
# some checks:
|
||||||
# 1. if you scrolling vertically, I found no elegant way to hide the name (there just need's to be something up there!)
|
# 1. if you scrolling vertically, I found no elegant way to hide the name (there just need's to be something up there!)
|
||||||
if self.scroll_direction and self.hide_menu_name:
|
if self.scroll_direction and self.hide_menu_name:
|
||||||
raise TypeError("Hiding the menu name whilst having the scroll direction set to horizontal is impossible!")
|
raise TypeError("Hiding the menu name whilst having the scroll direction set to horizontal is unsupported!")
|
||||||
# 2. if there are no menu items to display...
|
# 2. if there are no menu items to display...
|
||||||
if len(self.menu_items) == 0:
|
if len(self.menu_items) == 0:
|
||||||
raise TypeError("Can't show empty menus! Maybe you forgot calling self.setup() after initializing me?")
|
raise TypeError("Can't show empty menus! Maybe you forgot calling self.setup() after initializing me?")
|
||||||
|
Loading…
Reference in New Issue
Block a user