proc graph_fill_listbox : use "xschem raw read" instead of "xschem raw switch" so if user enters a new file it will be immediately loaded
This commit is contained in:
parent
cc5864e12f
commit
f9114a0888
|
|
@ -1944,7 +1944,7 @@ proc graph_fill_listbox {} {
|
||||||
set sim_type [uplevel #0 {subst [xschem getprop rect 2 $graph_selected sim_type 2]}]
|
set sim_type [uplevel #0 {subst [xschem getprop rect 2 $graph_selected sim_type 2]}]
|
||||||
# puts "graph_fill_listbox: $rawfile $sim_type"
|
# puts "graph_fill_listbox: $rawfile $sim_type"
|
||||||
if {$rawfile ne {}} {
|
if {$rawfile ne {}} {
|
||||||
set res [xschem raw switch $rawfile $sim_type]
|
set res [xschem raw read $rawfile $sim_type]
|
||||||
if {$res} {
|
if {$res} {
|
||||||
set retval [graph_get_signal_list [xschem raw_query list] $retval]
|
set retval [graph_get_signal_list [xschem raw_query list] $retval]
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -2096,7 +2096,7 @@ proc graph_edit_properties {n} {
|
||||||
|
|
||||||
label .graphdialog.center.right.rawlab -text { Raw file: }
|
label .graphdialog.center.right.rawlab -text { Raw file: }
|
||||||
entry .graphdialog.center.right.rawentry -width 30
|
entry .graphdialog.center.right.rawentry -width 30
|
||||||
bind .graphdialog.center.right.rawentry <Leave> {
|
bind .graphdialog.center.right.rawentry <KeyRelease> {
|
||||||
xschem setprop rect 2 $graph_selected rawfile [.graphdialog.center.right.rawentry get] fast
|
xschem setprop rect 2 $graph_selected rawfile [.graphdialog.center.right.rawentry get] fast
|
||||||
if {[file_exists [.graphdialog.center.right.rawentry get]]} {
|
if {[file_exists [.graphdialog.center.right.rawentry get]]} {
|
||||||
graph_fill_listbox
|
graph_fill_listbox
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue