cc_frm_header: minor format changes

This commit is contained in:
2020-01-05 21:17:59 +01:00
parent ec3907a0e5
commit 658941f721

View File

@@ -515,11 +515,15 @@ void CComponentsHeader::enableClock(bool enable, const char* format, const char*
{ {
cch_cl_enable = enable; cch_cl_enable = enable;
cch_cl_format = format; cch_cl_format = format;
if (cch_cl_obj && cch_cl_enable) if (cch_cl_obj && cch_cl_enable)
cch_cl_obj->clear(); cch_cl_obj->clear();
if (sec_format_str) if (sec_format_str)
cch_cl_sec_format = sec_format_str; cch_cl_sec_format = sec_format_str;
cch_cl_enable_run = run; cch_cl_enable_run = run;
if (!cch_cl_enable){ if (!cch_cl_enable){
if (cch_cl_obj){ if (cch_cl_obj){
cch_cl_enable_run = false; cch_cl_enable_run = false;
@@ -527,6 +531,7 @@ void CComponentsHeader::enableClock(bool enable, const char* format, const char*
cch_cl_obj = NULL; cch_cl_obj = NULL;
} }
} }
initCCItems(); initCCItems();
} }