From 022fe48bc8357817ca07ba40730d411e1399535b Mon Sep 17 00:00:00 2001 From: langolierz Date: Wed, 19 Dec 2018 16:06:13 +0000 Subject: [PATCH] small fix to pr --- actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions.py b/actions.py index f515308..e2f8cfb 100644 --- a/actions.py +++ b/actions.py @@ -115,14 +115,14 @@ class Actions(object): def increase_seek_time(self): options = self.data.settings['sampler']['SEEK_TIME']['options'] current_index = [index for index, item in enumerate(options) if item == self.data.settings['sampler']['SEEK_TIME']['value'] ][0] - self.data.settings['sampler']['SEEK_TIME']['value'] = options + 1 % len(options) + self.data.settings['sampler']['SEEK_TIME']['value'] = options[(current_index + 1) % len(options) ] self.message_handler.set_message('INFO', 'The Seek Time is now ' + str(self.data.settings['sampler']['SEEK_TIME']['value']) + 's') def decrease_seek_time(self): options = self.data.settings['sampler']['SEEK_TIME']['options'] current_index = [index for index, item in enumerate(options) if item == self.data.settings['sampler']['SEEK_TIME']['value'] ][0] - self.data.settings['sampler']['SEEK_TIME']['value'] = options - 1 % len(options) + self.data.settings['sampler']['SEEK_TIME']['value'] = options[(current_index - 1) % len(options) ] self.message_handler.set_message('INFO', 'The Seek Time is now ' + str(self.data.settings['sampler']['SEEK_TIME']['value']) + 's')