Skip to content

Commit

Permalink
Merge pull request #581 from lamarios/feature/offline-subs
Browse files Browse the repository at this point in the history
offline subscriptions
  • Loading branch information
lamarios authored Aug 3, 2024
2 parents f9746ac + 9e3c156 commit 7762975
Show file tree
Hide file tree
Showing 20 changed files with 2,161 additions and 1,537 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 7762975

Please sign in to comment.