proc graph_edit_properties: "unlock X axis" checkbutton state immediately applied to graph, not only after closing dialog.

This commit is contained in:
stefan schippers 2024-02-05 23:33:25 +01:00
parent 55c43e6693
commit da72478265
1 changed files with 8 additions and 1 deletions

View File

@ -2769,7 +2769,14 @@ proc graph_edit_properties {n} {
} else {
.graphdialog.top.lwe insert 0 $custom_lw
}
checkbutton .graphdialog.top.unlocked -text {Unlock. X axis} -variable graph_unlocked
checkbutton .graphdialog.top.unlocked -text {Unlock. X axis} -variable graph_unlocked \
-command {
if {$graph_unlocked} {
xschem setprop rect 2 $graph_selected flags {graph,unlocked} fast
} else {
xschem setprop rect 2 $graph_selected flags {graph} fast
}
}
checkbutton .graphdialog.top.dig -text {Digital} -variable graph_digital -indicatoron 1 \
-command {
if { [xschem get schname] eq $graph_schname } {