mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
Experimental try to rework isPainted()
Origin commit data
------------------
Commit: 26eb4d079b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-19 (Thu, 19 Jan 2017)
This commit is contained in:
@@ -362,10 +362,12 @@ void CComponentsHeader::enableClock(bool enable, const char* format, const char*
|
||||
{
|
||||
cch_cl_enable = enable;
|
||||
cch_cl_format = format;
|
||||
if (cch_cl_obj && cch_cl_enable)
|
||||
cch_cl_obj->clear();
|
||||
if (sec_format_str)
|
||||
cch_cl_sec_format = sec_format_str;
|
||||
cch_cl_enable_run = run;
|
||||
if (!enable){
|
||||
if (!cch_cl_enable){
|
||||
if (cch_cl_obj){
|
||||
cch_cl_enable_run = false;
|
||||
removeCCItem(cch_cl_obj);
|
||||
@@ -544,7 +546,7 @@ void CComponentsHeader::paint(bool do_save_bg)
|
||||
initCCItems();
|
||||
|
||||
//paint form contents
|
||||
paintForm(do_save_bg);
|
||||
CComponentsForm::paint(do_save_bg);
|
||||
|
||||
//start clock if enabled
|
||||
if (cch_cl_obj){
|
||||
|
Reference in New Issue
Block a user