summaryrefslogtreecommitdiffstats
path: root/draklive-install
diff options
context:
space:
mode:
Diffstat (limited to 'draklive-install')
-rw-r--r--[-rwxr-xr-x]draklive-install12
1 files changed, 8 insertions, 4 deletions
diff --git a/draklive-install b/draklive-install
index 9543739..d39dcb1 100755..100644
--- a/draklive-install
+++ b/draklive-install
@@ -428,12 +428,16 @@ sub copying_message_with_progress_bar {
if ($total) {
$progress or internal_error('You must first give some text to display');
- $progress->set_fraction($current / $total);
- $progress->show;
- $displayed = 0;
- mygtk2::flush() while !$displayed;
+ my $fraction = min(1, $current / $total);
+ if ($fraction != $progress->get_fraction) {
+ $progress->set_fraction($fraction);
+ $progress->show;
+ $displayed = 0;
+ mygtk2::flush() while !$displayed;
+ }
} else {
$progress->hide;
+ mygtk2::flush();
}
};
}