Исправлена некорректная установка иконки на каталог

This commit is contained in:
svkalinin 2022-08-26 16:25:19 +03:00
parent 2f7b37ac66
commit cb77304a78

View File

@ -37,9 +37,9 @@ namespace eval Tree {
directory { directory {
regsub -all {\.|/|\\|\s} $item "_" subNode regsub -all {\.|/|\\|\s} $item "_" subNode
# puts $subNode # puts $subNode
if {[string match {*debian*} [string tolower $item]]} { if {[string match {*debian*} [string tolower [file tail $item]]]} {
set image [::FindImage debian] set image [::FindImage debian]
} elseif {[string match {*redhat*} [string tolower $item]]} { } elseif {[string match {*redhat*} [string tolower [file tail $item]]]} {
set image [::FindImage redhat] set image [::FindImage redhat]
} else { } else {
set image pixel set image pixel