Исправление ошибок
This commit is contained in:
@@ -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"
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"} {
|
||||||
|
|||||||
Reference in New Issue
Block a user