Skip to content

Commit

Permalink
offline subscriptions
Browse files Browse the repository at this point in the history
fixes #516
  • Loading branch information
lamarios committed Aug 3, 2024
1 parent 6a0fae6 commit d39a661
Show file tree
Hide file tree
Showing 19 changed files with 2,154 additions and 1,535 deletions.
5 changes: 1 addition & 4 deletions lib/home/models/db/home_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ enum HomeDataSource {

bool isPermitted(BuildContext context, bool isLoggedIn) {
return switch (this) {
(HomeDataSource.subscription ||
HomeDataSource.playlist ||
HomeDataSource.history) =>
isLoggedIn,
(HomeDataSource.playlist || HomeDataSource.history) => isLoggedIn,
(HomeDataSource.searchHistory) =>
context.read<SettingsCubit>().state.useSearchHistory,
(_) => true
Expand Down
Loading

0 comments on commit d39a661

Please sign in to comment.