Skip to content

Commit

Permalink
Empty badgenumber is valid!
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Aug 6, 2024
2 parents d782d9f + 5395acd commit 25f5144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/iconbadges.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ if {[tk windowingsystem] eq "x11"} {
}

if {!([string is integer -strict $badgenumber] && $badgenumber > 0)
&& $badgenumber ne "!"} {
&& $badgenumber ne "!" && $badgenumber ne ""} {
return -code error "can't use \"$badgenumber\" as icon badge"
}

Expand Down

0 comments on commit 25f5144

Please sign in to comment.