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