Исправил сохранение открытого каталога в настройках
This commit is contained in:
parent
253f79b6c1
commit
d560da0359
|
@ -87,6 +87,8 @@ proc Config::write {dir} {
|
||||||
ini::set $cfgFile "GUI" geometry [wm geometry .]
|
ini::set $cfgFile "GUI" geometry [wm geometry .]
|
||||||
if {$activeProject ne ""} {
|
if {$activeProject ne ""} {
|
||||||
ini::set $cfgFile "General" opened $activeProject
|
ini::set $cfgFile "General" opened $activeProject
|
||||||
|
} else {
|
||||||
|
ini::set $cfgFile "General" opened ""
|
||||||
}
|
}
|
||||||
ini::commit $cfgFile
|
ini::commit $cfgFile
|
||||||
ini::close $cfgFile
|
ini::close $cfgFile
|
||||||
|
|
|
@ -61,7 +61,7 @@ namespace eval FileOper {
|
||||||
|
|
||||||
proc CloseFolder {} {
|
proc CloseFolder {} {
|
||||||
global tree nbEditor activeProject
|
global tree nbEditor activeProject
|
||||||
set activeProject ""
|
|
||||||
set treeItem [$tree selection]
|
set treeItem [$tree selection]
|
||||||
set parent [$tree parent $treeItem]
|
set parent [$tree parent $treeItem]
|
||||||
while {$parent ne ""} {
|
while {$parent ne ""} {
|
||||||
|
@ -80,6 +80,7 @@ namespace eval FileOper {
|
||||||
}
|
}
|
||||||
$tree delete $treeItem
|
$tree delete $treeItem
|
||||||
}
|
}
|
||||||
|
set activeProject ""
|
||||||
}
|
}
|
||||||
|
|
||||||
proc CloseAll {} {
|
proc CloseAll {} {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user