finish quick menu

This commit is contained in:
chrys 2019-02-14 00:14:26 +01:00
parent 93b5498e04
commit c0cb26a991

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)) self.env['runtime']['settingsManager'].setSetting(section, setting, str(value)[:3])
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)) self.env['runtime']['settingsManager'].setSetting(section, setting, str(value)[:3])
except Exception as e: except Exception as e:
return False return False
return True return True