gui: Ask if the currently running session should be stopped when
loading a file.
This commit is contained in:
parent
51e670c717
commit
9f1e800756
1 changed files with 5 additions and 1 deletions
|
@ -147,7 +147,11 @@ proc openFile {} {
|
|||
global undolog activetool
|
||||
global canvas_list curcanvas systype
|
||||
global changed
|
||||
|
||||
|
||||
if { [popupStopSessionPrompt] == "cancel" } {
|
||||
return
|
||||
}
|
||||
|
||||
if { [lindex [file extension $currentFile] 0] == ".py" } {
|
||||
set flags 0x10 ;# status request flag
|
||||
sendRegMessage -1 $flags [list "exec" $currentFile]
|
||||
|
|
Loading…
Reference in a new issue