finish quick menu

This commit is contained in:
chrys 2019-02-14 00:15:04 +01:00
parent c0cb26a991
commit 276c33c834

View File

@ -77,7 +77,7 @@ class quickMenuManager():
value += 0.05 value += 0.05
if value > 1.0: if value > 1.0:
value = 1.0 value = 1.0
self.env['runtime']['settingsManager'].setSetting(section, setting, str(value)[:3]) self.env['runtime']['settingsManager'].setSetting(section, setting, str(value)[:4])
except Exception as e: except Exception as e:
return False return False
return True return True
@ -111,7 +111,7 @@ class quickMenuManager():
value -= 0.05 value -= 0.05
if value < 0.0: if value < 0.0:
value = 0.0 value = 0.0
self.env['runtime']['settingsManager'].setSetting(section, setting, str(value)[:3]) self.env['runtime']['settingsManager'].setSetting(section, setting, str(value)[:4])
except Exception as e: except Exception as e:
return False return False
return True return True