Disabled didPopNext() refresh of message_list

This commit is contained in:
Mike Schwörer 2024-06-17 22:54:45 +02:00
parent 5b8a1e86e0
commit 600f3365f6
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 5 additions and 2 deletions

View File

@ -113,8 +113,10 @@ class _MessageListPageState extends State<MessageListPage> with RouteAware {
@override
void didPopNext() {
ApplicationLog.debug('[MessageList::RouteObserver] --> didPopNext (will background-refresh)');
_backgroundRefresh(false);
if (AppSettings().alwaysBackgroundRefreshMessageListOnPop) {
ApplicationLog.debug('[MessageList::RouteObserver] --> didPopNext (will background-refresh)');
_backgroundRefresh(false);
}
}
void _onLifecycleResume() {

View File

@ -4,6 +4,7 @@ class AppSettings extends ChangeNotifier {
bool groupNotifications = true;
int messagePageSize = 128;
bool showDebugButton = true;
bool alwaysBackgroundRefreshMessageListOnPop = false;
static AppSettings? _singleton = AppSettings._internal();