fix(#18): drop redundant per-change refreshDeviceInfo in Privacy section

Human testing found Privacy controls slow to respond. _PrivacySection._apply called refreshDeviceInfo() after every toggle/dropdown change -- a 5-frame device re-query (deviceQuery, appStart, battery, customVars, autoAddFlags) that does not even re-fetch telemetry. setTelemetryModeBase already updates the connector's local state and calls notifyListeners(), so the refresh was pure overhead. Removed it; apply is now a single setOtherParams frame, matching the auto-add section's responsiveness.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
pull/36/head
Strycher 1 month ago
parent 413e47563e
commit c20bbf7d80

@ -1053,7 +1053,6 @@ class _PrivacySectionState extends State<_PrivacySection> {
_advertLocPolicy ? 1 : 0,
_multiAcks,
);
await widget.connector.refreshDeviceInfo();
} while (_applyAgain);
} catch (e) {
if (!mounted) return;

Loading…
Cancel
Save

Powered by TurnKey Linux.