mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-05 16:00:06 +01:00
Update actions.py
Realized that the modulo was redundant...
This commit is contained in:
@@ -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)):
|
||||
|
||||
Reference in New Issue
Block a user