Ignore:
Timestamp:
Apr 25, 2012, 11:31:03 AM (12 years ago)
Author:
gah
Message:

fix multiple for about icons for 2 page tools with manual-resim set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/main.tcl

    r2744 r2977  
    290290# Finalize the arrangement
    291291# ----------------------------------------------------------------------
    292 if {[llength [$win.pager page]] == 2} {
     292if {[llength [$win.pager page]] > 2} {
     293    # We have phases, so we shouldn't allow the "Simulate" button.
     294    # If it pops up, there are two ways to push simulate and duplicate
     295    # links for "About" and "Questions?".
     296    $f.analyze configure -simcontrol off
     297} elseif {[llength [$win.pager page]] == 2} {
    293298    set style [$xmlobj get tool.layout]
    294299    set screenw [winfo screenwidth .]
     
    317322    }
    318323    if { $arrangement != "side-by-side" &&
    319             ($type == "manual" || $type == "auto" || $style == "wizard") } {
     324            ($type == "manual" || $type == "manual-resim" ||
     325             $type == "auto" || $style == "wizard") } {
    320326        # in "auto" mode, we don't need a simulate button
    321327        $f.analyze configure -simcontrol off
     
    324330        $f.analyze configure -simcontrol on
    325331    }
    326 } elseif {[llength [$win.pager page]] > 2} {
    327     # We have phases, so we shouldn't allow the "Simulate" button.
    328     # If it pops up, there are two ways to push simulate and duplicate
    329     # links for "About" and "Questions?".
    330     $f.analyze configure -simcontrol off
    331332}
    332333
Note: See TracChangeset for help on using the changeset viewer.