mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +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
|
//manage toggle button
|
||||||
handleOptionIcon(l_option);
|
if (localized.size() == 2)
|
||||||
|
handleOptionIcon(l_option);
|
||||||
|
|
||||||
//paint item
|
//paint item
|
||||||
prepareItem(selected, height);
|
prepareItem(selected, height);
|
||||||
@@ -2028,7 +2029,8 @@ int CMenuOptionChooser::paint( bool selected)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//manage toggle button
|
//manage toggle button
|
||||||
handleOptionIcon(l_option);
|
if (number_of_options == 2)
|
||||||
|
handleOptionIcon(l_option);
|
||||||
|
|
||||||
//paint item
|
//paint item
|
||||||
prepareItem(selected, height);
|
prepareItem(selected, height);
|
||||||
|
Reference in New Issue
Block a user