KhalisFoundation / sttm-desktop

The SikhiToTheMax Desktop App
Open Software License 3.0
33 stars 32 forks source link

fix: Ensure numeric operations for font size adjustments #1911

Closed yadvirkaur closed 3 months ago

yadvirkaur commented 3 months ago

Fixed a bug where userSettings[stateName] was treated as a string, leading to string concatenation instead of arithmetic addition when adjusting font sizes. For example, adding 1 to a font size of '9' resulted in '91' instead of 10. The solution implemented parses userSettings[stateName] as an integer before performing the addition.