pep8 comments

This commit is contained in:
Rob Weber
2019-11-25 15:19:57 -06:00
parent bbbfc3dd84
commit f7665c8ddd
11 changed files with 234 additions and 235 deletions

View File

@@ -13,9 +13,9 @@ class BackupProgressBar:
def __init__(self,progressOverride):
self.override = progressOverride
#check if we should use the progress bar
# check if we should use the progress bar
if(int(utils.getSetting('progress_mode')) != 2):
#check if background or normal
# check if background or normal
if(int(utils.getSetting('progress_mode')) == 0 and not self.override):
self.mode = self.DIALOG
self.progressBar = xbmcgui.DialogProgress()
@@ -29,10 +29,10 @@ class BackupProgressBar:
def updateProgress(self,percent,message=None):
#update the progress bar
# update the progress bar
if(self.mode != self.NONE):
if(message != None):
#need different calls for dialog and background bars
# need different calls for dialog and background bars
if(self.mode == self.DIALOG):
self.progressBar.update(percent,message)
else: