Repeater screens query the mesh only on request
Opening a repeater's settings, status, telemetry or neighbours no longer sends anything over the mesh; each screen waits for its refresh button. On the settings screen alone the fetch-on-open was a dozen CLI requests, every time it was opened. Switch: kFetchRemoteOnOpen in lib/tth_fork.dart. The node's own telemetry is local and still loads on open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
36806e289d
commit
71884e269f
5 files changed
+15
-4
No files matched your search
@@ -17,6 +17,7 @@ import '../utils/battery_utils.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import '../widgets/radio_disconnected_banner.dart';
|
||||
import '../widgets/routing_sheet.dart';
|
||||
import '../tth_fork.dart';
|
||||
|
||||
class RepeaterStatusScreen extends StatefulWidget {
|
||||
final Contact repeater;
|
||||
@@ -70,7 +71,7 @@ class _RepeaterStatusScreenState extends State<RepeaterStatusScreen> {
|
||||
_commandService = RepeaterCommandService(connector);
|
||||
_setupMessageListener();
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (mounted) _loadStatus();
|
||||
if (mounted && kFetchRemoteOnOpen) _loadStatus();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user