Changeset 140035 for trunk/base


Ignore:
Timestamp:
Sep 7, 2015, 4:09:03 PM (5 years ago)
Author:
raimue@…
Message:

port1.0/portactivate.tcl:
Save notes after finishing the activation, which allows to append notes in the post-activate phase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portactivate.tcl

    r118304 r140035  
    6464
    6565    registry_activate $subport $version $revision $portvariants [array get user_options]
    66     if {[info exists PortInfo(notes)] && [llength $PortInfo(notes)] > 0} {
    67         ui_notifications_append $subport $PortInfo(notes)
    68     }
    6966
    7067    return 0
     
    7269
    7370proc portactivate::activate_finish {args} {
    74     global subport startupitem.autostart UI_PREFIX
     71    global subport startupitem.autostart PortInfo UI_PREFIX
    7572
    7673    # Do this _after_ activate_main, because post-activate hooks might create
     
    8481    }
    8582
     83    # Save notes for display by the port client
     84    if {[info exists PortInfo(notes)] && [llength $PortInfo(notes)] > 0} {
     85        ui_notifications_append $subport $PortInfo(notes)
     86    }
     87
    8688    return 0
    8789}
Note: See TracChangeset for help on using the changeset viewer.