You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/screens/dashboard/dashboard.dart
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -52,11 +52,16 @@ class ClearFilesButton extends StatelessWidget {
52
52
@override
53
53
Widgetbuild(BuildContext context) {
54
54
returnBlocConsumer<ProcessBloc, ProcessState>(
55
+
listenWhen: (previous, current) =>
56
+
previous.exitCode !=
57
+
current
58
+
.exitCode, // we reset the exit code everytime so listen only when a new version actually comes not from some other state change before reset error code state comes
55
59
listener: (context, processState) {
56
-
if (CCExtractor.exitCodes[processState.exitCode] !=null&& processState.exitCode !=0) {
60
+
if (CCExtractor.exitCodes[processState.exitCode] !=null&&
0 commit comments