diff options
-rwxr-xr-x | control-center | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/control-center b/control-center index 7e27ae57..defba586 100755 --- a/control-center +++ b/control-center @@ -1261,7 +1261,7 @@ my $spacing = 25; my %tool_callbacks; -my ($page_count, $need_to_refresh); +my ($page_count, $need_to_refresh, $is_freezed); sub really_refresh_tree { my $pos = $notebook_global->get_current_page; @@ -1272,6 +1272,7 @@ sub really_refresh_tree { # restore previous position: $notebook_global->set_current_page($pos); $notebook_global->window && $notebook_global->window->thaw_updates; + $is_freezed = 0; } sub request_url { @@ -1283,7 +1284,10 @@ sub request_url { sub refresh_tree { my ($mode) = @_; if ($mode && $page_count) { - $notebook_global->window and $notebook_global->window->freeze_updates; + if (!$is_freezed && $notebook_global->window) { + $notebook_global->window->freeze_updates; + $is_freezed = 1; + } $notebook_global->remove_page(-1) foreach 0..$page_count-1; $page_count = 0; } |