fix return

This commit is contained in:
chrys 2019-02-13 23:27:20 +01:00
parent 514b5368b4
commit 38fca03d4a

View File

@ -62,7 +62,7 @@ class quickMenuManager():
self.env['runtime']['settingsManager'].setSettingAsFloat(self.quickMenu[self.position]['section'], self.quickMenu[self.position]['setting'], value) self.env['runtime']['settingsManager'].setSettingAsFloat(self.quickMenu[self.position]['section'], self.quickMenu[self.position]['setting'], value)
return True return True
except: except:
pass return False
return True return True
def prevValue(self): def prevValue(self):
if len(self.quickMenu) == 0: if len(self.quickMenu) == 0:
@ -86,7 +86,7 @@ class quickMenuManager():
self.env['runtime']['settingsManager'].setSettingAsFloat(self.quickMenu[self.position]['section'], self.quickMenu[self.position]['setting'], value) self.env['runtime']['settingsManager'].setSettingAsFloat(self.quickMenu[self.position]['section'], self.quickMenu[self.position]['setting'], value)
return True return True
except: except:
pass return False
return True return True
def getCurrentEntry(self): def getCurrentEntry(self):
if len(self.quickMenu) == 0: if len(self.quickMenu) == 0: