Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-03-26 20:53:03 (GMT)
committer Daniel Drake <dsd@laptop.org>2012-03-26 20:53:03 (GMT)
commit06ae627ef907ca5e0fb448bd1e2b4a6a9b2c86dc (patch)
tree179bfc9bee542a7282d3614d153fedd40b1de4e0 /model.py
parent467c35b94b1c76ec5af2c7d479f318480ee02a90 (diff)
Reset progress upon start media capture
After recording audio/video, when recording again you would briefly see the "Saving..." message and old progress bar before the first timer tick. Reset the progress bar when starting recording to avoid this glitch.
Diffstat (limited to 'model.py')
-rw-r--r--model.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/model.py b/model.py
index d47671c..1af2487 100644
--- a/model.py
+++ b/model.py
@@ -199,6 +199,7 @@ class Model:
self.glive.take_photo()
return
+ self.set_progress(0, '')
self._timer_value = self.activity.get_selected_duration()
self._timer_duration = self._timer_value
self._timer_handle = gobject.timeout_add(1000, self._timer_tick)