forgot to add handlesuccess

main
Kai Mannweiler 2023-02-27 17:01:44 +01:00
parent d401882671
commit 3909bfd66c
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class MyScannerState extends State<MyScanner> {
});
}
void handleSucces(String group) {
void handleSucces(int group) {
setState(() {
scanning = false;
showDialog(
@ -53,6 +53,7 @@ class MyScannerState extends State<MyScanner> {
Map<String, dynamic> json = stringToJSON(qrText);
Settings settings = Settings.fromJson(json);
saveSettings(settings);
handleSucces(settings.group);
}
}
} catch (e) {