Исправление ошибок

This commit is contained in:
svk
2026-01-22 17:48:59 +03:00
parent 83d70ebd3f
commit bc706ab410
2 changed files with 5 additions and 3 deletions

View File

@@ -172,8 +172,10 @@ proc Config::CheckVariables {} {
if {[regexp {^([^=]+)=(.*)$} $item -> var value]} { if {[regexp {^([^=]+)=(.*)$} $item -> var value]} {
if ![info exists ::cfgVariables($var)] { if ![info exists ::cfgVariables($var)] {
DebugPuts "Error in Config::CheckVariables: variable ::cfgVariables($var) not found" DebugPuts "Error in Config::CheckVariables: variable ::cfgVariables($var) not found"
Config::AddVariable "$var" "$value" "$section" # set ::cfgVariables($var) $value
DebugPuts "Config::CheckVariables: The variable cfgVariables($var) setting to default value \"$value\"" DebugPuts "Config::CheckVariables: The variable cfgVariables($var) setting to default value \"$value\""
Config::AddVariable "$var" "$value" "$section"
} }
} }
} }

View File

@@ -1159,10 +1159,10 @@ proc Redo {} { SendEventToLatestTxtWidget <<Redo>> }
proc DebugPuts {msg} { proc DebugPuts {msg} {
global cfgVariables global cfgVariables
if ![info exists cfgVariables(debug)] { if ![info exists cfgVariables(debug)] {
set cfgVariables(debug) "true" return 0
} }
if ![info exists cfgVariables(debugOut)] { if ![info exists cfgVariables(debugOut)] {
set cfgVariables(debugOut) "stdout" return 0
} }
if {$cfgVariables(debug) eq "true"} { if {$cfgVariables(debug) eq "true"} {
if {$cfgVariables(debugOut) eq "stdout"} { if {$cfgVariables(debugOut) eq "stdout"} {