Changeset 37:a9637d8e2ea0 for src/mlx/gui
- Timestamp:
- 03/04/12 08:58:27 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/update.py
r36 r37 157 157 self._sudoCondition.notify() 158 158 159 def setTotalSize(self, numToModifyAndNew, totalSize, numToRemove): 159 def setTotalSize(self, numToModifyAndNew, totalSize, numToRemove, 160 numToRemoveLocal): 160 161 """Called when the downloading of the files has started.""" 161 162 self._numToModifyAndNew = numToModifyAndNew … … 164 165 self._downloaded = 0 165 166 self._numToRemove = numToRemove 167 self._numToRemoveLocal = numToRemoveLocal 166 168 self._numRemoved = 0 167 169 168 170 self._totalProgress = self._totalSize + \ 169 (self._numToModifyAndNew + self._numToRemove) * \ 171 (self._numToModifyAndNew + \ 172 self._numToRemove + self._numToRemoveLocal) * \ 170 173 Updater.REMOVE2BYTES 171 self._waitAfterFinish = self._total Progress> 0174 self._waitAfterFinish = self._totalSize > 0 or self._numToRemove > 0 172 175 173 176 def _startDownload(self): … … 233 236 """Called when the update has been done.""" 234 237 gobject.idle_add(self._done) 235 self._restart = self._ totalProgress>0238 self._restart = self._waitAfterFinish 236 239 237 240 def _done(self):
Note:
See TracChangeset
for help on using the changeset viewer.