Skip to content

math-preferences: Fix setting the switch state

Adrien Plazas requested to merge aplazas/gnome-calculator:switch-state into master

The callback should return true to stop propagation and false otherwise. Here we don't return anything, which is wrong and make the propagation stop, which isn't what we want. This makes the callbacks correctly propagate the set-state signal so the switchs can acquire the checked state.

Before:

Capture_d_écran_de_2021-03-19_14-09-34

After:

Capture_d_écran_de_2021-03-19_14-10-19

Edited by Adrien Plazas

Merge request reports