mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
CMenuWidget: move signal before render methodes
At start of methode, unusual behavior could occur.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 30f231c801
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-11 (Fri, 11 Nov 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1228,7 +1228,6 @@ void CMenuWidget::initSelectable()
|
|||||||
|
|
||||||
void CMenuWidget::paint()
|
void CMenuWidget::paint()
|
||||||
{
|
{
|
||||||
OnBeforePaint();
|
|
||||||
if (header){
|
if (header){
|
||||||
if ((bool)header->getCornerRadius() != (bool)g_settings.rounded_corners) //ensure reset if corner mode was changed
|
if ((bool)header->getCornerRadius() != (bool)g_settings.rounded_corners) //ensure reset if corner mode was changed
|
||||||
ResetModules();
|
ResetModules();
|
||||||
@@ -1239,6 +1238,8 @@ void CMenuWidget::paint()
|
|||||||
calcSize();
|
calcSize();
|
||||||
CVFD::getInstance()->setMode(CVFD::MODE_MENU_UTF8 /*, nameString.c_str()*/);
|
CVFD::getInstance()->setMode(CVFD::MODE_MENU_UTF8 /*, nameString.c_str()*/);
|
||||||
|
|
||||||
|
OnBeforePaint();
|
||||||
|
|
||||||
// paint head
|
// paint head
|
||||||
if (header == NULL){
|
if (header == NULL){
|
||||||
header = new CComponentsHeader(x, y, width + sb_width, hheight, getName(), iconfile);
|
header = new CComponentsHeader(x, y, width + sb_width, hheight, getName(), iconfile);
|
||||||
|
Reference in New Issue
Block a user