1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Add new panes to tour

This commit is contained in:
2021-04-24 08:51:56 +02:00
parent 1129726bbd
commit 18d3ae6955
4 changed files with 45 additions and 12 deletions

View File

@ -114,7 +114,10 @@ class PushNotificationsConfigurationWidgetState
child: Column(
children: [
Text(
tr("Comunic can send you push notifications to your device."),
tr("%app% can send you push notifications to your device.",
args: {
"app": config().appName,
}),
textAlign: TextAlign.center,
),
SizedBox(height: 10),

View File

@ -78,18 +78,18 @@ class _InitializeWidgetState extends SafeState<InitializeWidget> {
return;
}
final prefs = await PreferencesHelper.getInstance();
if (!prefs.getBool(PreferencesKeyList.IS_TOUR_SEEN))
await showTour(context);
print("Attempting WebSocket connection...");
setState(() {
_error = false;
});
await WebSocketHelper.connect();
final prefs = await PreferencesHelper.getInstance();
if (!prefs.getBool(PreferencesKeyList.IS_TOUR_SEEN))
await showTour(context);
print("Attempting WebSocket connection...");
setState(() {});
} catch (e, stack) {
print("Could not connect to server! $e");