fix: keep diagnostics available while connecting
This commit is contained in:
@@ -1518,9 +1518,6 @@ class _BetaHomeState extends State<_BetaHome> with WidgetsBindingObserver {
|
||||
}
|
||||
|
||||
Future<void> _onShowDiagnostics(BuildContext context) async {
|
||||
if (!_phase.canOpenDiagnostics) {
|
||||
return;
|
||||
}
|
||||
final l10n = AppL10n.of(context);
|
||||
final rustText = rust.exportDiagnostics();
|
||||
final uiText = _uiDiagnostics.isEmpty
|
||||
@@ -1662,12 +1659,10 @@ class _BetaHomeState extends State<_BetaHome> with WidgetsBindingObserver {
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: _phase.canOpenDiagnostics
|
||||
? () async {
|
||||
Navigator.of(ctx).pop();
|
||||
await _onShowDiagnostics(context);
|
||||
}
|
||||
: null,
|
||||
onPressed: () async {
|
||||
Navigator.of(ctx).pop();
|
||||
await _onShowDiagnostics(context);
|
||||
},
|
||||
child: Text(l10n.diagnosticsAction),
|
||||
),
|
||||
TextButton(
|
||||
|
||||
Reference in New Issue
Block a user