Исправил сохранение открытого каталога в настройках

This commit is contained in:
svkalinin 2022-09-16 16:36:26 +03:00
parent 253f79b6c1
commit d560da0359
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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 {} {