widget/menue.cpp: avoid paint of toggle buttons with more than 2 opts

This commit is contained in:
2018-04-24 14:48:02 +02:00
parent e931932800
commit e4cd53bc90

View File

@@ -1722,6 +1722,7 @@ int CMenuOptionNumberChooser::paint(bool selected)
}
//manage toggle button
if (localized.size() == 2)
handleOptionIcon(l_option);
//paint item
@@ -2028,6 +2029,7 @@ int CMenuOptionChooser::paint( bool selected)
}
//manage toggle button
if (number_of_options == 2)
handleOptionIcon(l_option);
//paint item