diff --git a/lib/widgets/scanner.dart b/lib/widgets/scanner.dart index f8e22d1..76ec40a 100644 --- a/lib/widgets/scanner.dart +++ b/lib/widgets/scanner.dart @@ -30,7 +30,7 @@ class MyScannerState extends State { }); } - void handleSucces(String group) { + void handleSucces(int group) { setState(() { scanning = false; showDialog( @@ -53,6 +53,7 @@ class MyScannerState extends State { Map json = stringToJSON(qrText); Settings settings = Settings.fromJson(json); saveSettings(settings); + handleSucces(settings.group); } } } catch (e) {