Skip to content

Commit

Permalink
chore: dont refetch pages after signing out
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed Aug 8, 2024
1 parent 4e153b1 commit 85293ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion lib/youtube/pages/youtube_main_page_fetcher_acc_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,14 @@ class _YoutubePageState<W extends YoutiPieListWrapper<T>, T extends MapSerializa
}

void _onAccChanged() {
_onInit(forceRequest: true);
final isSignedIn = YoutubeAccountController.current.activeAccountChannel.value != null;
if (isSignedIn) {
_onInit(forceRequest: true);
} else {
_currentFeed.value = null;
_lastFetchWasCached.value = false;
_refreshButtonShown.value = false;
}
}

@override
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: namida
description: A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
publish_to: "none"
version: 3.8.59-beta+240808238
version: 3.8.6-beta+240808238

environment:
sdk: ">=3.4.0 <4.0.0"
Expand Down

0 comments on commit 85293ff

Please sign in to comment.