Skip to content

Commit

Permalink
Refactoring Globals.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kern, Thomas committed Dec 30, 2023
1 parent b08ab34 commit 2da9871
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/components/menu_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ typedef MenuCallbackFunction<T> = void Function(
typedef MenuItemApplicableCallback<T> = bool Function(T? arg, int? index);

typedef MenuBuilderFunction<T> = MenuBuilder Function(
BuildContext? context, T? arg, int? index);
BuildContext context, T? arg, int? index);

class MenuItem<T extends Object> {
final String label;
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/browse/library_appbar_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class LibraryBrowserAppBarMenu extends StatelessWidget {
showError(S.of(context!).playlistAlreadyExistsError, null);
}
}).onError((e, s) {
logger.e(e, stackTrace: s);
Globals.logger.e(e, stackTrace: s);
showError(S.of(context!).newPlaylistCreateError, null);
});
}
Expand Down
2 changes: 1 addition & 1 deletion lib/services/cover_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CoverServiceImpl extends CoverService {
final _mopidyService = GetIt.instance<MopidyService>();

// cache Image objects returned from mopidy.
final _mImages = Cache<MImage>(100, 500);
final _mImages = Cache<MImage>(500, 3000);

@override
Future<Widget> getImage(String uri) async {
Expand Down

0 comments on commit 2da9871

Please sign in to comment.