[pitivi] project_: Make unused field a local variable



commit 6db72753893c70c828d5c57882cfbef565ce72c3
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Dec 19 21:34:25 2016 +0100

    project_: Make unused field a local variable
    
    Reviewed-by: Thibault Saunier <tsaunier gnome org>
    Differential Revision: https://phabricator.freedesktop.org/D1562

 pitivi/project.py |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 060bd5f..bee8504 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -640,7 +640,6 @@ class Project(Loggable, GES.Project):
         self.at_least_one_asset_missing = False
         self.app = app
         self.loading_assets = []
-        self.asset_loading_progress = 100
         self.app.proxy_manager.connect("progress", self.__assetTranscodingProgressCb)
         self.app.proxy_manager.connect("error-preparing-asset",
                                        self.__proxyErrorCb)
@@ -992,14 +991,13 @@ class Project(Loggable, GES.Project):
             return
 
         if not self.loaded:
-            self.asset_loading_progress = self.__get_loading_project_progress()
+            progress = self.__get_loading_project_progress()
         else:
-            self.asset_loading_progress = self.__get_loading_assets_progress()
+            progress = self.__get_loading_assets_progress()
 
-        self.emit("asset-loading-progress", self.asset_loading_progress,
-                  estimated_time)
+        self.emit("asset-loading-progress", progress, estimated_time)
 
-        if self.asset_loading_progress == 100:
+        if progress == 100:
             self.info("No more loading assets")
             self.loading_assets = []
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]