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 '../helpers/snack_bar_builder.dart';
|
||||
import '../l10n/app_localizations.dart';
|
||||
import '../widgets/repeater_login_dialog.dart';
|
||||
import 'repeater_hub_screen.dart';
|
||||
import '../tth_fork.dart';
|
||||
|
||||
class NeighborsScreen extends StatefulWidget {
|
||||
final Contact repeater;
|
||||
@@ -78,7 +79,7 @@ class _NeighborsScreenState extends State<NeighborsScreen> {
|
||||
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
|
||||
_commandService = RepeaterCommandService(connector);
|
||||
_setupMessageListener();
|
||||
_loadNeighbors();
|
||||
if (kFetchRemoteOnOpen) _loadNeighbors();
|
||||
_hasData = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user