Skip to content

Commit

Permalink
fix high CPU usage on some apps
Browse files Browse the repository at this point in the history
  • Loading branch information
jginternational committed Feb 16, 2022
1 parent f0fa791 commit e14348b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions kratos.gid/kratos.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,6 @@ proc Kratos::LoadModelSPD { filespd } {
# Refresh the cache
customlib::UpdateDocument

# Load default files (if any) (file selection values store the filepaths in the spd)
spdAux::LoadModelFiles

# Load default intervals (if any)
spdAux::LoadIntervalGroups

Expand All @@ -288,6 +285,9 @@ proc Kratos::LoadModelSPD { filespd } {

apps::ExecuteOnCurrentApp LoadModelEvent $filespd

# Load default files (if any) (file selection values store the filepaths in the spd)
spdAux::LoadModelFiles

# Open the tree
spdAux::OpenTree

Expand Down
4 changes: 2 additions & 2 deletions kratos.gid/scripts/Controllers/ImportFiles.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ proc ::spdAux::LoadModelFiles { {root "" }} {
}
set files [$root getElementsByTagName "file"]
if {[llength $files] > 0} {
Kratos::LoadImportFiles
#Kratos::LoadImportFiles
foreach elem $files {
FileSelector::AddFile [$elem @n]
}
Expand All @@ -38,7 +38,7 @@ proc ::spdAux::SaveModelFile { fileid } {
}

proc ::spdAux::ProcGetFilesValues { domNode } {
Kratos::LoadImportFiles
#Kratos::LoadImportFiles
customlib::UpdateDocument
spdAux::LoadModelFiles
lappend listilla $::spdAux::no_file_string
Expand Down

0 comments on commit e14348b

Please sign in to comment.