This commit is contained in:
1 parent
d7b49e2b66
commit
e003c508f3
5 files changed
+181
-138
No files matched your search
+9
-1
@@ -153,6 +153,8 @@ class _MainState extends State<Main> with SingleTickerProviderStateMixin {
|
||||
late AnimationController _animationController;
|
||||
late Animation<double> _animation;
|
||||
|
||||
bool _dialogOpened = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
@@ -423,7 +425,13 @@ class _MainState extends State<Main> with SingleTickerProviderStateMixin {
|
||||
void _jobReceived(Job job) async {
|
||||
if (!MyApp.suppressAcceptDialog) {
|
||||
if (job.state == 0) {
|
||||
await showAcceptJobsPopup(context, await MyApp.isarInstance.jobs.filter().stateEqualTo(0).findAll());
|
||||
if (!_dialogOpened) {
|
||||
_dialogOpened = true;
|
||||
|
||||
await showAcceptJobsPopup(context, await MyApp.isarInstance.jobs.filter().stateEqualTo(0).findAll(), () {
|
||||
_dialogOpened = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user