From c0cb26a991d2704b8ee8f10dad0783f287cef4c5 Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 14 Feb 2019 00:14:26 +0100 Subject: [PATCH] finish quick menu --- src/fenrirscreenreader/core/quickMenuManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/core/quickMenuManager.py b/src/fenrirscreenreader/core/quickMenuManager.py index 1f15170f..55c2fae6 100644 --- a/src/fenrirscreenreader/core/quickMenuManager.py +++ b/src/fenrirscreenreader/core/quickMenuManager.py @@ -77,7 +77,7 @@ class quickMenuManager(): value += 0.05 if 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: return False return True @@ -111,7 +111,7 @@ class quickMenuManager(): value -= 0.05 if 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: return False return True