mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
widget/menue.cpp: avoid paint of toggle buttons with more than 2 opts
Origin commit data
------------------
Branch: ni/coolstream
Commit: 74f1f2f647
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-04-29 (Sun, 29 Apr 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1754,7 +1754,8 @@ int CMenuOptionNumberChooser::paint(bool selected)
|
||||
}
|
||||
|
||||
//manage toggle button
|
||||
handleOptionIcon(l_option);
|
||||
if (localized.size() == 2)
|
||||
handleOptionIcon(l_option);
|
||||
|
||||
//paint item
|
||||
prepareItem(selected, height);
|
||||
@@ -2060,7 +2061,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