Update actions.py

Realized that the  modulo was redundant...
This commit is contained in:
TanSaturn
2018-10-19 09:41:36 -07:00
parent 9465feaa4a
commit 4b12efb99f

View File

@@ -114,7 +114,7 @@ class Actions(object):
def increase_seek_time(self):
for index, i in enumerate(self.data.settings['sampler']['SEEK_TIME']['options']):
if (i == self.data.settings['sampler']['SEEK_TIME']['value']) and ((index + 1) % (len(self.data.settings['sampler']['SEEK_TIME']['options']) + 1) != len(self.data.settings['sampler']['SEEK_TIME']['options'])):
if (i == self.data.settings['sampler']['SEEK_TIME']['value']) and ((index + 1) != len(self.data.settings['sampler']['SEEK_TIME']['options'])):
self.data.settings['sampler']['SEEK_TIME']['value'] = self.data.settings['sampler']['SEEK_TIME']['options'][(index + 1)]
break
if (index >= (len(self.data.settings['sampler']['SEEK_TIME']['options']) - 1)):