Skip to content

Commit

Permalink
Merge pull request #204 from qubic/bugfix/exporting-valut-file
Browse files Browse the repository at this point in the history
fix: Add  check before reinitializing webview controller
  • Loading branch information
Qubic-Hub authored Nov 18, 2024
2 parents addbe0f + 21247ae commit 1a3ba3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/resources/qubic_js.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class QubicJs {
}

reInitialize() async {
if (controller != null) {
debugPrint("Reinitialize skipped: Controller is still valid");
return;
}
disposeController();
await initialize();
}
Expand Down

0 comments on commit 1a3ba3b

Please sign in to comment.