mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-26 12:46:43 +08:00
Disable Scroll to Refresh when sync mode set to Manual
This commit is contained in:
@ -136,10 +136,16 @@ class _FolderViewState extends State<FolderView> {
|
||||
),
|
||||
body: Center(
|
||||
child: Builder(
|
||||
builder: (context) => RefreshIndicator(
|
||||
child: Scrollbar(child: folderView),
|
||||
onRefresh: () async => _syncRepo(context),
|
||||
),
|
||||
builder: (context) {
|
||||
var child = Scrollbar(child: folderView);
|
||||
if (settings.remoteSyncFrequency == RemoteSyncFrequency.Manual) {
|
||||
return child;
|
||||
}
|
||||
return RefreshIndicator(
|
||||
child: child,
|
||||
onRefresh: () async => _syncRepo(context),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
extendBody: true,
|
||||
|
Reference in New Issue
Block a user