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
@@ -16,6 +16,7 @@ import '../widgets/radio_disconnected_banner.dart';
|
||||
import '../widgets/routing_sheet.dart';
|
||||
import '../utils/keys.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../tth_fork.dart';
|
||||
|
||||
class RepeaterSettingsScreen extends StatefulWidget {
|
||||
final Contact repeater;
|
||||
@@ -221,7 +222,7 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (!mounted) return;
|
||||
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
|
||||
if (connector.isConnected) _refreshAll();
|
||||
if (kFetchRemoteOnOpen && connector.isConnected) _refreshAll();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user