magic/tcltk
Ahmed Nematallah c3ee33e9a1 tcl/tk: Fix layer toolbar icon synchronization on left-click
There is a bug where left-clicking a hidden layer in the toolbar successfully makes the layer visible in the layout but fails to update the toolbar icon to the "active" state.

The root cause is a positional argument mismatch in magic::toolupdate. When the Magic C-core issues a callback for a "see" command with two arguments, the third argument (layerlist) is passed as an empty string ("") rather than being omitted. This prevents the Tcl procedure from falling back to its hardcoded default of "none", causing the script to skip the logic that reassigns $yesno to "yes".

This patch changes the default value of $layerlist to "" and updates the conditional check to ensure the state and layer name are correctly reassigned regardless of how the C-core signals the update.
2026-05-06 11:43:32 -04:00
..
Makefile Makefile: sed => ${SED} 2025-07-29 10:50:32 -04:00
bsitools.tcl Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
cellmgr.tcl Modified the "tag" command to add an optional subcommand "add" or 2025-10-08 17:11:27 -04:00
console.tcl Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
drcmgr.tcl Quick fix to the script use of "units", which needs to expand the 2026-02-24 16:40:07 -05:00
ext2sim.sh.in Allow for bash in locations other than /bin 2023-04-22 14:13:57 -04:00
ext2spice.sh.in Allow for bash in locations other than /bin 2023-04-22 14:13:57 -04:00
libmgr.tcl Modified the "tag" command to add an optional subcommand "add" or 2025-10-08 17:11:27 -04:00
magic.sh.in Allow for bash in locations other than /bin 2023-04-22 14:13:57 -04:00
magic.tcl.in A few minor changes to message reporting, plus some additional 2025-12-19 09:30:35 -05:00
magicdnull.c Rewrote the configuration scripts, makefiles, and some initialization 2017-10-13 10:28:07 -04:00
magicexec.c Removed the "macosx" definition from the configuration file, which 2017-10-14 18:42:24 -04:00
magicps.pro Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
mazeroute.tcl Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
readspice.tcl Made a simple but important change to "readspice.tcl" to unexpand 2023-03-08 11:14:22 -05:00
reorderLayers.tcl EDIT: wrapper maketoolbar method refactored into a separate script, with changes to the toolbar. Reorder layers functionality added as well 2023-12-15 15:54:05 -05:00
socketcmd.tcl Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
strip_reflibs.tcl Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
tclmagic.c Modified the "tag" command to add an optional subcommand "add" or 2025-10-08 17:11:27 -04:00
tclmagic.h header file #ifndef guard namespace consistency (global change) 2025-07-29 10:50:32 -04:00
techbuilder.tcl Create techbuilder.tcl 2021-08-28 12:58:58 -04:00
texthelper.tcl Solved three issues: 2026-04-01 21:17:54 -04:00
tkcon.tcl Modified some lines in tkcon.tcl that make it compatible with both 2025-01-04 14:09:58 -05:00
tkshell.tcl Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
toolbar.tcl Finally got around to restoring the behavior of the toolbar with 2024-10-01 16:01:28 -04:00
toolkit.tcl Ensure all cells are loaded into memory in netlist_to_spice to avoid file corruption during save 2026-05-06 11:37:52 -04:00
toolkit_rev0.tcl Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
tools.tcl Fixed issues with the "macro" command that have existed since the 2026-04-13 12:26:42 -04:00
wrapper.tcl tcl/tk: Fix layer toolbar icon synchronization on left-click 2026-05-06 11:43:32 -04:00