DebugScreen: Allow levels dialog to be dismissed

This commit is contained in:
Vishesh Handa
2020-05-20 00:51:57 +02:00
parent c935feaee0
commit 7611794fd3

View File

@ -204,9 +204,11 @@ class _DebugScreenState extends State<DebugScreen> {
),
);
var l = await showDialog(context: context, builder: (context) => dialog);
setState(() {
filterLevel = l;
});
if (l != null) {
setState(() {
filterLevel = l;
});
}
}
}