Skip to content

Commit

Permalink
use self.step
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu committed Jun 16, 2022
1 parent 8bd405a commit 0528bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magicgui/widgets/_bases/ranged_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def step(self, value: Union[float, None]):
@property
def adaptive_step(self):
"""Whether the step size is adaptive."""
return self._widget._mgui_get_adaptive_step()
return self.step is None

@adaptive_step.setter
def adaptive_step(self, value: bool):
Expand Down

0 comments on commit 0528bf5

Please sign in to comment.