Skip to content

Commit

Permalink
feat: open Syrius logs directory
Browse files Browse the repository at this point in the history
  • Loading branch information
alienc0der committed Aug 7, 2023
1 parent 11f1d98 commit 11b3efe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/widgets/main_app_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class _MainAppContainerState extends State<MainAppContainer>
}

Widget _getSyncingStatusIcon(SyncState syncState, [SyncInfo? syncInfo]) {
var message = 'Connected and synced';
String message = 'Connected and synced';

if (syncState != SyncState.notEnoughPeers &&
syncState != SyncState.syncDone &&
Expand All @@ -450,7 +450,7 @@ class _MainAppContainerState extends State<MainAppContainer>
return Tooltip(
message: message,
child: Icon(
Icons.signal_cellular_connected_no_internet_0_bar,
Icons.sync_disabled,
size: 24.0,
color: _getSyncIconColor(syncState),
));
Expand All @@ -470,7 +470,7 @@ class _MainAppContainerState extends State<MainAppContainer>
repeat: true,
));
} else if (syncInfo.targetHeight == 0 || syncInfo.currentHeight == 0) {
message = 'Started sync, please wait';
message = 'Started syncing with the network, please wait';
syncState = SyncState.syncing;
return Tooltip(
message: message,
Expand Down Expand Up @@ -660,6 +660,7 @@ class _MainAppContainerState extends State<MainAppContainer>
} else {
_lockBloc.addEvent(LockEvent.navigateToDashboard);
}

_listenToAutoReceiveTxWorkerNotifications();
}

Expand Down
8 changes: 8 additions & 0 deletions lib/widgets/modular_widgets/help_widgets/about_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:io';

import 'package:flutter/material.dart';
import 'package:open_filex/open_filex.dart';
import 'package:path/path.dart' as path;
import 'package:zenon_syrius_wallet_flutter/blocs/blocs.dart';
import 'package:zenon_syrius_wallet_flutter/model/model.dart';
import 'package:zenon_syrius_wallet_flutter/utils/metadata.dart';
Expand Down Expand Up @@ -115,6 +116,13 @@ class AboutCardState extends State<AboutCard> {
_getGenericOpenButtonExpandedChild(
znnDefaultPaths.cache.absolute.path),
),
CustomExpandablePanel(
'Syrius log path',
_getGenericOpenButtonExpandedChild(
Directory(path.join(znnDefaultCacheDirectory.path, 'log'))
.absolute
.path),
),
CustomExpandablePanel(
'Syrius wallet path',
_getGenericOpenButtonExpandedChild(
Expand Down

0 comments on commit 11b3efe

Please sign in to comment.