Skip to content

Commit

Permalink
Fix Desktop Init (#1256)
Browse files Browse the repository at this point in the history
* Show UI after flashlight init fail.

* Update vpn_notifier.dart
  • Loading branch information
jigar-f authored Dec 9, 2024
1 parent 82cb17a commit 090ef69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/features/vpn/vpn_notifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ class VPNChangeNotifier with ChangeNotifier {
if (configNotifier == null) {
return;
}

if (timer!.tick >= 6) {
// Timer has reached 6 seconds
// Stop the timer and set isFlashlightInitialized to true
appLogger.i("flashlight fail initialized");
isFlashlightInitialized = true;
isFlashlightInitializedFailed = true;
notifyListeners();
}
updateStatus(
configNotifier.fetchedProxiesConfig,
configNotifier.fetchedGlobalConfig,
Expand Down

0 comments on commit 090ef69

Please sign in to comment.