fix index calculation in remove
This commit is contained in:
parent
265940e025
commit
1b97be5bd1
|
@ -29,8 +29,9 @@ def add(event):
|
|||
def remove(event):
|
||||
global path, index
|
||||
if len(path) > 1:
|
||||
index -= 1
|
||||
path = path[:-1]
|
||||
if index > len(path) - 1:
|
||||
index = len(path) - 1
|
||||
aller_selon(path)
|
||||
|
||||
def next(event):
|
||||
|
|
Loading…
Reference in New Issue