fix: keep diagnostics available while connecting

This commit is contained in:
Edison Jwa
2026-05-25 16:01:48 +09:00
parent b8df25a195
commit 4a2a05ef83
+4 -9
View File
@@ -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(