Browse Source

Merge pull request #378 from provokateurin/fix/supress-null-app-error

neon: Supress error when setting null active app
pull/386/head
Kate 1 year ago committed by GitHub
parent
commit
0a8c5c0666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/neon/neon/lib/src/blocs/apps.dart

2
packages/neon/neon/lib/src/blocs/apps.dart

@ -133,7 +133,7 @@ class AppsBloc extends InteractiveBloc implements AppsBlocEvents, AppsBlocStates
} }
} else if (appID == 'notifications') { } else if (appID == 'notifications') {
openNotifications.add(null); openNotifications.add(null);
} else { } else if (appID != null) {
throw Exception('App $appID not found'); throw Exception('App $appID not found');
} }
} }

Loading…
Cancel
Save