mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-09 13:45:33 +00:00
10_CUL_HM:cut text if too long for dis-wm
git-svn-id: https://svn.fhem.de/fhem/trunk@7960 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e41c1fa426
commit
78135fbab1
@ -5051,10 +5051,7 @@ sub CUL_HM_calcDisWmSet($){
|
||||
my $dh = shift;
|
||||
my ($txt,$col,$icon) = eval $dh->{exe};
|
||||
if ($txt eq "off") { delete $dh->{txt};}
|
||||
elsif($txt ne "nc"){
|
||||
if (length($txt)>12){ delete $dh->{txt};}
|
||||
else { $dh->{txt} = $txt; }
|
||||
}
|
||||
elsif($txt ne "nc") { $dh->{txt} = substr($txt,0,12);}
|
||||
|
||||
if($col eq "off") { delete $dh->{col};}
|
||||
elsif($col ne "nc"){
|
||||
|
Loading…
x
Reference in New Issue
Block a user