[Pkg-privacy-commits] [tails-installer] 08/13: Show an indefinite progressbar when writing without reporting progress
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:28:05 UTC 2017
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 3.95.0
in repository tails-installer.
commit 4de5f9812d73c93b8417645a9b35c054e229eb07
Author: Martin Briza <mbriza at redhat.com>
Date: Thu Apr 28 11:59:44 2016 +0200
Show an indefinite progressbar when writing without reporting progress
---
liveusb/components/AdwaitaProgressBar.qml | 5 +++++
liveusb/creator.py | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/liveusb/components/AdwaitaProgressBar.qml b/liveusb/components/AdwaitaProgressBar.qml
index e7cf71a..3094ed9 100644
--- a/liveusb/components/AdwaitaProgressBar.qml
+++ b/liveusb/components/AdwaitaProgressBar.qml
@@ -41,5 +41,10 @@ Rectangle {
GradientStop { position: 1.0; color: Qt.darker(root.progressColor) }
}
}
+
+ AdwaitaBusyIndicator {
+ anchors.fill: parent
+ visible: isNaN(root.value)
+ }
}
diff --git a/liveusb/creator.py b/liveusb/creator.py
index d9a8472..3132c1a 100755
--- a/liveusb/creator.py
+++ b/liveusb/creator.py
@@ -364,7 +364,7 @@ class LinuxLiveUSBCreator(LiveUSBCreator):
update_function = None
if update_function:
- update_function(0.0)
+ update_function(float('nan'))
for i in os.listdir('/dev'):
dev = os.path.join('/dev/', i)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list