From 451b1da5a3b372109cf4028b715caa1add409ba3 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 13 Dec 2018 15:55:38 +0100 Subject: [PATCH] use a more telling variable name for previous button Signed-off-by: Thomas Lamprecht --- proxinstall | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/proxinstall b/proxinstall index 1a1d2f6..46e8ed6 100755 --- a/proxinstall +++ b/proxinstall @@ -234,7 +234,7 @@ my @steps = ( # GUI global variables my ($window, $cmdbox, $inbox, $htmlview); -my $prev; +my $prev_btn; my ($next, $next_fctn, $target_hd); my ($progress, $progress_status); @@ -1756,12 +1756,12 @@ sub prev_function { $fctn = $step_number if !$fctn; $text = "_Previous" if !$text; - $prev->set_label ($text); + $prev_btn->set_label ($text); $step_number--; $steps[$step_number]->{function}(); - $prev->grab_focus (); + $prev_btn->grab_focus (); } sub set_next { @@ -1806,9 +1806,9 @@ sub create_main_window { $cmdbox->pack_end ($next, 0, 0, 10); - $prev = Gtk3::Button->new ('_Previous'); - $prev->signal_connect (clicked => sub { $last_display_change = 0; &prev_function (); }); - $cmdbox->pack_end ($prev, 0, 0, 10); + $prev_btn = Gtk3::Button->new ('_Previous'); + $prev_btn->signal_connect (clicked => sub { $last_display_change = 0; &prev_function (); }); + $cmdbox->pack_end ($prev_btn, 0, 0, 10); my $abort = Gtk3::Button->new ('_Abort'); @@ -3033,7 +3033,7 @@ sub get_btrfs_raid_setup { sub create_hdsel_view { - $prev->set_sensitive(1); # enable previous button at this point + $prev_btn->set_sensitive(1); # enable previous button at this point cleanup_view (); @@ -3149,7 +3149,7 @@ sub create_extract_view { sub create_intro_view { - $prev->set_sensitive(0); + $prev_btn->set_sensitive(0); cleanup_view(); -- 2.39.2