mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-16 21:47:45 -04:00
Currently, if a user presses 'OK' or 'Apply' on the settings window, it will save all data from all controls on a settings pane, regardless of whether of not they were changed. The major issue with this is that setting the data will overwrite all default values, making it impossible for default values to be used if a user didn't actually change a value. (Thanks to palana for pointing this fact out) So instead, mark a control as 'changed' using QObject::property() and QObject::sender(), and add a few helper functions to controls to ensure that they are checked to see whether they were actually changed directly by the user before saving the value to the config.
22 KiB
22 KiB