Check if cfg changed before saving