mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 04:40:34 +05:00
check for flag 'typevariable' in the load geometry procedure
This commit is contained in:
parent
fc095693d9
commit
f4ba49d9c0
@ -47,9 +47,12 @@ menu .ngmenu.file
|
|||||||
|
|
||||||
# {"Naomi Geometry" {.nao} }
|
# {"Naomi Geometry" {.nao} }
|
||||||
# {"New Geometry file" {.ngg} }
|
# {"New Geometry file" {.ngg} }
|
||||||
|
|
||||||
# set file [tk_getOpenFile -filetypes $types -initialdir $dirname -typevariable loadgeomtypevar]
|
if {[catch {
|
||||||
set file [tk_getOpenFile -filetypes $types -initialdir $dirname]
|
set file [tk_getOpenFile -filetypes $types -initialdir $dirname -typevariable loadgeomtypevar]
|
||||||
|
}]} {
|
||||||
|
set file [tk_getOpenFile -filetypes $types -initialdir $dirname]
|
||||||
|
}
|
||||||
if {$file != ""} {
|
if {$file != ""} {
|
||||||
AddRecentFile $file
|
AddRecentFile $file
|
||||||
Ng_LoadGeometry $file
|
Ng_LoadGeometry $file
|
||||||
|
Loading…
Reference in New Issue
Block a user