enter runtime state when start button pressed with empty canvas
(Boeing r1805)
This commit is contained in:
parent
564cabaac6
commit
c1c71bb33a
3 changed files with 7 additions and 11 deletions
10
gui/api.tcl
10
gui/api.tcl
|
@ -2358,8 +2358,9 @@ proc sendConfReplyMessage { channel node model types values opaque } {
|
|||
}
|
||||
|
||||
if { $prmsg == 1 } {
|
||||
puts -nonewline ">CONF(flags=0x0,mod=$model,"
|
||||
puts -nonewline ">CONF(flags=0,"
|
||||
if {$node > -1 } { puts -nonewline "node=$node," }
|
||||
puts -nonewline "obj=$model,cflags=0"
|
||||
if {$session != "" } { puts -nonewline "session=$session," }
|
||||
if {$opaque != "" } { puts -nonewline "opaque=$opaque," }
|
||||
puts "types=<$types>,values=<$values>) reply"
|
||||
|
@ -2495,13 +2496,6 @@ proc deployCfgAPI { sock } {
|
|||
return
|
||||
}
|
||||
|
||||
set nodecount [getNodeCount]
|
||||
if { $nodecount == 0 } {
|
||||
# This allows switching to exec mode without extra API messages,
|
||||
# such as when connecting to a running session.
|
||||
return
|
||||
}
|
||||
|
||||
set deployCfgAPI_lock 1 ;# lock
|
||||
|
||||
set mac_byte4 0
|
||||
|
|
|
@ -345,7 +345,7 @@ proc startStopButton { mode } {
|
|||
# INPUTS
|
||||
# * mode -- the new operating mode. Can be edit or exec.
|
||||
#****
|
||||
proc setOperMode { mode } {
|
||||
proc setOperMode { mode { type "" } } {
|
||||
global oper_mode activetool
|
||||
global undolevel redolevel
|
||||
global g_prefs
|
||||
|
@ -399,7 +399,9 @@ proc setOperMode { mode } {
|
|||
monitor_loop
|
||||
set plugin [lindex [getEmulPlugin "*"] 0]
|
||||
set emul_sock [pluginConnect $plugin connect false]
|
||||
deployCfgAPI $emul_sock
|
||||
if {$type != "connect"} {
|
||||
deployCfgAPI $emul_sock
|
||||
}
|
||||
widget_loop
|
||||
mobility_script_loop
|
||||
### stop button is pressed
|
||||
|
|
|
@ -1023,7 +1023,7 @@ proc connectShutdownSession { cmd channel sid fn } {
|
|||
}
|
||||
# connect to an existing session
|
||||
set currentFile $fn
|
||||
setOperMode exec
|
||||
setOperMode exec connect
|
||||
set flags 0x11 ;# add flag, status req flag
|
||||
}
|
||||
shutdown {
|
||||
|
|
Loading…
Reference in a new issue