mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
CComponentsWindow: remove redundant init of header and footer
This commit is contained in:
@@ -212,10 +212,6 @@ void CComponentsWindow::initCCWItems()
|
||||
#ifdef DEBUG_CC
|
||||
printf("[CComponentsWindow] [%s - %d] init items...\n", __func__, __LINE__);
|
||||
#endif
|
||||
initHeader();
|
||||
initFooter();
|
||||
initBody();
|
||||
|
||||
//add/remove header if required
|
||||
if (ccw_show_header){
|
||||
initHeader();
|
||||
@@ -236,6 +232,8 @@ void CComponentsWindow::initCCWItems()
|
||||
}
|
||||
}
|
||||
|
||||
initBody();
|
||||
|
||||
//add header, body and footer items only one time
|
||||
if (ccw_head)
|
||||
if (!ccw_head->isAdded())
|
||||
|
Reference in New Issue
Block a user