mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
widget/menue.cpp: avoid paint of toggle buttons with more than 2 opts
This commit is contained in:
@@ -1722,7 +1722,8 @@ int CMenuOptionNumberChooser::paint(bool selected)
|
||||
}
|
||||
|
||||
//manage toggle button
|
||||
handleOptionIcon(l_option);
|
||||
if (localized.size() == 2)
|
||||
handleOptionIcon(l_option);
|
||||
|
||||
//paint item
|
||||
prepareItem(selected, height);
|
||||
@@ -2028,7 +2029,8 @@ int CMenuOptionChooser::paint( bool selected)
|
||||
}
|
||||
|
||||
//manage toggle button
|
||||
handleOptionIcon(l_option);
|
||||
if (number_of_options == 2)
|
||||
handleOptionIcon(l_option);
|
||||
|
||||
//paint item
|
||||
prepareItem(selected, height);
|
||||
|
Reference in New Issue
Block a user