mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-24 20:00:33 +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} }
|
||||
# {"New Geometry file" {.ngg} }
|
||||
|
||||
# set file [tk_getOpenFile -filetypes $types -initialdir $dirname -typevariable loadgeomtypevar]
|
||||
set file [tk_getOpenFile -filetypes $types -initialdir $dirname]
|
||||
|
||||
if {[catch {
|
||||
set file [tk_getOpenFile -filetypes $types -initialdir $dirname -typevariable loadgeomtypevar]
|
||||
}]} {
|
||||
set file [tk_getOpenFile -filetypes $types -initialdir $dirname]
|
||||
}
|
||||
if {$file != ""} {
|
||||
AddRecentFile $file
|
||||
Ng_LoadGeometry $file
|
||||
|
Loading…
Reference in New Issue
Block a user