diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-08-22 18:35:58 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-08-22 18:35:58 (GMT) |
commit | 4b69d43161c8b6b8fe6493d50d965a90c5e58b88 (patch) | |
tree | 4603f05d3192c215e92fa5aaf93af1db64f1beb4 /ds9/library/load.tcl | |
parent | 2ce2cfcf340128b8c14f335581ec9819352fd7af (diff) | |
download | blt-4b69d43161c8b6b8fe6493d50d965a90c5e58b88.zip blt-4b69d43161c8b6b8fe6493d50d965a90c5e58b88.tar.gz blt-4b69d43161c8b6b8fe6493d50d965a90c5e58b88.tar.bz2 |
clean up code
Diffstat (limited to 'ds9/library/load.tcl')
-rw-r--r-- | ds9/library/load.tcl | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/ds9/library/load.tcl b/ds9/library/load.tcl index 025ce9f..87f98b2 100644 --- a/ds9/library/load.tcl +++ b/ds9/library/load.tcl @@ -252,12 +252,14 @@ proc ProcessLoadSaveParams {varname} { } } -proc FinishLoadPre {} { - global loadParam +proc LoadUpdate {} { global current - global threed - UpdateWCS + # just in case, frame may have been deleted before FinishLoad during startup + if {$current(frame) != {}} { + # if header(s) were open, remove them + DestroyHeader $current(frame) + } # generate grid so UpdateMenu is correct GridUpdateCurrent @@ -265,23 +267,14 @@ proc FinishLoadPre {} { # generate contour so UpdateMenu is correct UpdateContourScale UpdateContour +} - # just in case, frame may have been deleted before FinishLoad during startup - if {$current(frame) == {}} { - return - } - - # if header(s) were open, remove them - DestroyHeader $current(frame) - +proc FinishLoad {} { + LoadUpdate # Cube? if {[$current(frame) has fits cube]} { CubeDialog } -} - -proc FinishLoad {} { - FinishLoadPre UpdateDS9 } |