summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-08 11:31:31 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-08 11:31:31 +0000
commit83b21a46cac6f9cee8c717b6ae46907f63982516 (patch)
treefa00ab9f0cc036b86d6ae3a6dbf39b8a4b02ff4d
parent64010d864e947ac5d857b2ff80df7f59a6689e03 (diff)
downloadcontrol-center-83b21a46cac6f9cee8c717b6ae46907f63982516.tar
control-center-83b21a46cac6f9cee8c717b6ae46907f63982516.tar.gz
control-center-83b21a46cac6f9cee8c717b6ae46907f63982516.tar.bz2
control-center-83b21a46cac6f9cee8c717b6ae46907f63982516.tar.xz
control-center-83b21a46cac6f9cee8c717b6ae46907f63982516.zip
simplify code by killing code workarounding toggling expert mode while
a tools is embedded (Left menu icons missing, was #14440)
-rwxr-xr-xcontrol-center10
1 files changed, 3 insertions, 7 deletions
diff --git a/control-center b/control-center
index deeab9bf..63ec1851 100755
--- a/control-center
+++ b/control-center
@@ -1206,7 +1206,7 @@ my ($index, $left_locked) = (0, 0);
my %tool_callbacks;
-my ($page_count, $need_to_refresh, $is_freezed);
+my ($page_count, $need_to_refresh);
sub really_refresh_tree() {
my $pos = $notebook_global->get_current_page;
@@ -1221,8 +1221,7 @@ sub really_refresh_tree() {
$notebook_global->set_current_page($saved_pos_while_in_menu);
undef $saved_pos_while_in_menu;
}
- $notebook_global->window and $notebook_global->window->thaw_updates if $is_freezed;
- $is_freezed = 0;
+ $notebook_global->window and $notebook_global->window->thaw_updates;
}
sub request_url {
@@ -1238,10 +1237,7 @@ my $align2 = lang::text_direction_rtl() ? "right" : "left";
sub refresh_tree {
my ($mode) = @_;
if ($mode && $page_count) { # this is not initial tree filling bug "expert mode" swtich
- if (!$is_freezed && $notebook_global->window) {
- $notebook_global->window->freeze_updates;
- $is_freezed = 1;
- }
+ $notebook_global->window->freeze_updates;
$notebook_global->remove_page(-1) foreach 0..$page_count-1;
$page_count = 0;
}