SFR 461681, 461710 - spamming config file with non-changes to device
selections.
Fix: only write to the config file when something has actually changed.
Reduces config file writes from several hundred to a handful (for starting
client, selecting a different device, closing client).