lxqt / lxqt-panel

The LXQt desktop panel
https://lxqt-project.org
GNU Lesser General Public License v2.1
193 stars 135 forks source link

Avoid writing to config file on *continuously* changing a setting in config GUIs #2170

Open tsujan opened 1 week ago

tsujan commented 1 week ago

This is one of those mistakes many devs (even professional ones) make: they write to a config file as soon as the user moves a slider, turns mouse wheel on a combo/spin box, types in a line-edit, etc. Yes, most users may have SSD, but it isn't logical with SSD either, while it's a disaster with HDD.

I fixed it in places where I encountered it, but there are still more instances. For example, see https://github.com/lxqt/lxqt/discussions/2635#discussioncomment-11171970