From 38d3b6e56c750a9dbeabe908033426e40d24a392 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 29 Apr 2018 03:13:07 +0200 Subject: [PATCH] widget/menue.cpp: avoid paint of toggle buttons with more than 2 opts Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/74f1f2f6470eddcfde15ffdadb4f2b9a445253cb Author: Thilo Graf Date: 2018-04-29 (Sun, 29 Apr 2018) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 35cae0a4b..ddb2da75e 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -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);