This repository was archived by the owner on Apr 3, 2025. It is now read-only.
File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ class _State extends State<NZBGetQueue>
58
58
});
59
59
60
60
Future <void > _fetchWithoutMessage () async {
61
- _fetch ().then ((_) => {if (mounted) setState (() {})}).catchError ((error) {
61
+ _fetch ().then ((_) {
62
+ if (mounted) setState (() {});
63
+ }).catchError ((error) {
62
64
_queue = null ;
63
65
});
64
66
}
@@ -76,7 +78,7 @@ class _State extends State<NZBGetQueue>
76
78
}).catchError ((error) {
77
79
_queue = null ;
78
80
_setError (true );
79
- return Future . error (error) ;
81
+ throw error;
80
82
});
81
83
}
82
84
Original file line number Diff line number Diff line change @@ -164,6 +164,8 @@ class LunaBlock extends StatelessWidget {
164
164
}
165
165
166
166
Widget _fadeInBackground (BuildContext context, double _height) {
167
+ if (backgroundUrl == null ) return const SizedBox ();
168
+
167
169
final _percent = LunaSeaDatabase .THEME_IMAGE_BACKGROUND_OPACITY .read ();
168
170
if (_percent == 0 ) return const SizedBox (height: 0 , width: 0 );
169
171
Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ class LunaGridBlock extends StatelessWidget {
85
85
}
86
86
87
87
Widget _fadeInBackground (BuildContext context) {
88
+ if (backgroundUrl == null ) return const SizedBox ();
89
+
88
90
final _percent = LunaSeaDatabase .THEME_IMAGE_BACKGROUND_OPACITY .read ();
89
91
if (_percent == 0 ) return const SizedBox (height: 0 , width: 0 );
90
92
You can’t perform that action at this time.
0 commit comments