Fix sound in start
This commit is contained in:
parent
ca85a45dd6
commit
9d5f1daaa5
|
@ -53,6 +53,12 @@ Future<void> main() async {
|
||||||
// Get a valid GVA endpoint
|
// Get a valid GVA endpoint
|
||||||
endPointGVA = await _homeProvider.getValidEndpoint();
|
endPointGVA = await _homeProvider.getValidEndpoint();
|
||||||
|
|
||||||
|
if (endPointGVA == 'HS') {
|
||||||
|
_homeProvider.playSound('faché');
|
||||||
|
} else {
|
||||||
|
_homeProvider.playSound('start');
|
||||||
|
}
|
||||||
|
|
||||||
if (kReleaseMode && enableSentry) {
|
if (kReleaseMode && enableSentry) {
|
||||||
// CatcherOptions debugOptions = CatcherOptions(DialogReportMode(), [
|
// CatcherOptions debugOptions = CatcherOptions(DialogReportMode(), [
|
||||||
// SentryHandler(SentryClient(SentryOptions(
|
// SentryHandler(SentryClient(SentryOptions(
|
||||||
|
|
|
@ -61,11 +61,8 @@ class HomeProvider with ChangeNotifier {
|
||||||
int listLenght = _listEndpoints.length - 1;
|
int listLenght = _listEndpoints.length - 1;
|
||||||
if (i > listLenght) {
|
if (i > listLenght) {
|
||||||
log.e('NO VALID GVA ENDPOINT FOUND');
|
log.e('NO VALID GVA ENDPOINT FOUND');
|
||||||
playSound('faché');
|
|
||||||
_endpoint = 'HS';
|
_endpoint = 'HS';
|
||||||
break;
|
break;
|
||||||
} else {
|
|
||||||
playSound('start');
|
|
||||||
}
|
}
|
||||||
if (i != 0) {
|
if (i != 0) {
|
||||||
await Future.delayed(const Duration(milliseconds: 300));
|
await Future.delayed(const Duration(milliseconds: 300));
|
||||||
|
|
|
@ -157,7 +157,7 @@ class WalletOptionsProvider with ChangeNotifier {
|
||||||
context, _walletName, _walletNbr, _derivation) async {
|
context, _walletName, _walletNbr, _derivation) async {
|
||||||
return showDialog<bool>(
|
return showDialog<bool>(
|
||||||
context: context,
|
context: context,
|
||||||
barrierDismissible: true, // user must tap button!
|
barrierDismissible: true,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
title: Text('Choisissez un nouveau nom pour ce portefeuille'),
|
title: Text('Choisissez un nouveau nom pour ce portefeuille'),
|
||||||
|
|
Loading…
Reference in New Issue