Added opening last active project when project run

This commit is contained in:
Sergey Kalinin
2018-02-15 17:56:10 +03:00
parent 1748933767
commit 987b4c2745
7 changed files with 18 additions and 38 deletions

View File

@@ -312,7 +312,7 @@ proc SendEmail {mail} {
}
## QUIT PROJECT MANAGER PROCEDURE ##
proc Quit {} {
global workDir
global workDir activeProject
set v [FileDialog tree close_all]
if {$v == "cancel"} {
return
@@ -325,6 +325,8 @@ proc Quit {} {
while {[gets $file line]>=0} {
if {[regexp -nocase -all -- {set topLevelGeometry} $line match]} {
puts $file1 "set topLevelGeometry \"[winfo geometry .]\""
} elseif {[regexp -nocase -all -- {set workingProject} $line match]} {
puts $file1 "set workingProject \"$activeProject\""
} else {
puts $file1 "$line"
}
@@ -660,19 +662,3 @@ proc GetExtention {node} {
return $ext
}