mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 06:07:34 +02:00
Ensure layer name compatibility in wrapper.tcl
Added check for 'none' layer name to ensure backwards compatibility.
This commit is contained in:
+3
-1
@@ -728,7 +728,9 @@ proc magic::toolupdate {win {yesno "yes"} {layerlist ""}} {
|
||||
# Don't do anything if toolbar is not present
|
||||
if { $Winopts(${topname},toolbar) == 0 } { return }
|
||||
|
||||
if {$layerlist == ""} {
|
||||
# To ensure backwards compatibility, we check if the
|
||||
# layer is called none, so avoid naming a layer none.
|
||||
if {$layerlist == "" || $layerlist == "none"} {
|
||||
set layerlist $yesno
|
||||
set yesno "yes"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user