shithub: neindaw

Download patch

ref: 99b0f582fbf5ce5af8c54baa1992215d316dc576
parent: 81aebc21df6ba0bcf0e5e6bcbb615199e97e9ac9
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Feb 28 04:54:40 EST 2020

cfg: update ivalue when reading an ui element

--- a/cfg/cfg.c
+++ b/cfg/cfg.c
@@ -106,6 +106,7 @@
 		case UIButton:
 		case UICheckBox:
 			ui->value = atof(strtok(nil, "\t"));
+			ui->ivalue = !!ui->value;
 			break;
 		case UIVSlider:
 		case UIHSlider: