Fix ABBamp restores

Writing gain=?? also enables the gain. We should ask before if the checkbox is checked before writing gain values.
Merge pull request #10 from t4n017/patch-1

Fix ABBamp restores