v0.45.1: the laser's Afterimage is a number box, like Line width
Type the seconds, or step by 0.05 with the arrows or ↑/↓; it reads "Off" at zero. Line width and Afterimage now share one number-box helper.
This commit is contained in:
@@ -614,12 +614,15 @@ class TestPreferencesPage:
|
||||
prefs = Preferences(tmp_path)
|
||||
dialog = self._dialog(prefs)
|
||||
for slider, key in ((dialog._bars_fade_slider, "visualizer_bars_fade"),
|
||||
(dialog._fade_slider, "visualizer_ghost_fade"),
|
||||
(dialog._laser_fade_slider,
|
||||
"visualizer_laser_afterimage")):
|
||||
(dialog._fade_slider, "visualizer_ghost_fade")):
|
||||
assert slider.minimum() == 0 # 0 = off
|
||||
slider.setValue(10)
|
||||
assert prefs.get(key) == 0.5
|
||||
# The laser's is a number box, like Line width.
|
||||
box = dialog._laser_fade_box
|
||||
assert box.minimum() == 0
|
||||
box.setValue(0.5)
|
||||
assert prefs.get("visualizer_laser_afterimage") == 0.5
|
||||
|
||||
def test_laser_settings(self, qapp, tmp_path):
|
||||
prefs = Preferences(tmp_path)
|
||||
|
||||
Reference in New Issue
Block a user