forked from M-Labs/artiq
1
0
Fork 0

gui: remove unnecessary state test

This commit is contained in:
Chris Ballance 2017-03-31 09:43:31 +01:00 committed by Sébastien Bourdeauducq
parent bdf1ca25c6
commit 58da76a169
1 changed files with 1 additions and 2 deletions

View File

@ -260,8 +260,7 @@ class _RangeScan(LayoutWidget):
def update_randomize(value): def update_randomize(value):
state["randomize"] = value state["randomize"] = value
if randomize.isChecked() != value: randomize.setChecked(value)
randomize.setChecked(value)
scanner.startChanged.connect(update_start) scanner.startChanged.connect(update_start)
scanner.numChanged.connect(update_npoints) scanner.numChanged.connect(update_npoints)