mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-09-11 14:02:38 +02:00
Maybe last time it didn't actually commit?
This commit is contained in:
@@ -337,7 +337,11 @@ class Ptycho2DDataset(CDataset):
|
||||
idx = slider.val - 1
|
||||
elif event.key == 'down' or event.button == 'down' or event.key == 'left':
|
||||
idx = slider.val + 1
|
||||
|
||||
else:
|
||||
# This prevents errors from being thrown on irrelevant key
|
||||
# or mouse input
|
||||
return
|
||||
|
||||
# Handle the wraparound and trigger the update
|
||||
idx = int(idx) % len(self)
|
||||
slider.set_val(idx)
|
||||
|
||||
Reference in New Issue
Block a user