mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-02-12 16:52:51 +00:00
Move upload queue pause toggle from offline to queue page in settings
This commit is contained in:
@@ -106,7 +106,6 @@ cp lib/keys.dart.example lib/keys.dart
|
|||||||
### Needed Bugfixes
|
### Needed Bugfixes
|
||||||
- Imperial units
|
- Imperial units
|
||||||
- Pass through tags on existing nodes which are not included in selected profile to the refine tags page, much like we do for all tags when "existing tags" profile is selected
|
- Pass through tags on existing nodes which are not included in selected profile to the refine tags page, much like we do for all tags when "existing tags" profile is selected
|
||||||
- Move "pause queue" toggle
|
|
||||||
- Make submission guide scarier
|
- Make submission guide scarier
|
||||||
- Tile cache trimming? Does fluttermap handle?
|
- Tile cache trimming? Does fluttermap handle?
|
||||||
- Filter NSI suggestions based on what has already been typed in
|
- Filter NSI suggestions based on what has already been typed in
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
"• Improved first launch experience - location permission is now requested immediately after welcome dialog",
|
"• Improved first launch experience - location permission is now requested immediately after welcome dialog",
|
||||||
"• Notification permission is now requested only when user enables proximity alerts (better UX)",
|
"• Notification permission is now requested only when user enables proximity alerts (better UX)",
|
||||||
"• Prevent edit submissions where nothing (location, tags, direction) has been changed",
|
"• Prevent edit submissions where nothing (location, tags, direction) has been changed",
|
||||||
"• Allow customizing changeset comment on refine tags page"
|
"• Allow customizing changeset comment on refine tags page",
|
||||||
|
"• Moved upload queue pause toggle to upload queue screen for better discoverability"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"2.6.2": {
|
"2.6.2": {
|
||||||
|
|||||||
@@ -77,27 +77,7 @@ class OfflineModeSection extends StatelessWidget {
|
|||||||
onChanged: (value) => _handleOfflineModeChange(context, appState, value),
|
onChanged: (value) => _handleOfflineModeChange(context, appState, value),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
|
||||||
ListTile(
|
|
||||||
leading: Icon(
|
|
||||||
Icons.pause_circle_outline,
|
|
||||||
color: appState.offlineMode
|
|
||||||
? Theme.of(context).disabledColor
|
|
||||||
: Theme.of(context).iconTheme.color,
|
|
||||||
),
|
|
||||||
title: Text(
|
|
||||||
locService.t('settings.pauseQueueProcessingSubtitle'),
|
|
||||||
style: appState.offlineMode
|
|
||||||
? TextStyle(color: Theme.of(context).disabledColor)
|
|
||||||
: null,
|
|
||||||
),
|
|
||||||
trailing: Switch(
|
|
||||||
value: appState.pauseQueueProcessing,
|
|
||||||
onChanged: appState.offlineMode
|
|
||||||
? null // Disable when offline mode is on
|
|
||||||
: (value) => appState.setPauseQueueProcessing(value),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -148,6 +148,31 @@ class UploadQueueScreen extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
// Pause Upload Queue Toggle
|
||||||
|
ListTile(
|
||||||
|
leading: Icon(
|
||||||
|
Icons.pause_circle_outline,
|
||||||
|
color: appState.offlineMode
|
||||||
|
? Theme.of(context).disabledColor
|
||||||
|
: Theme.of(context).iconTheme.color,
|
||||||
|
),
|
||||||
|
title: Text(locService.t('settings.pauseQueueProcessing')),
|
||||||
|
subtitle: Text(
|
||||||
|
locService.t('settings.pauseQueueProcessingSubtitle'),
|
||||||
|
style: appState.offlineMode
|
||||||
|
? TextStyle(color: Theme.of(context).disabledColor)
|
||||||
|
: null,
|
||||||
|
),
|
||||||
|
trailing: Switch(
|
||||||
|
value: appState.pauseQueueProcessing,
|
||||||
|
onChanged: appState.offlineMode
|
||||||
|
? null // Disable when offline mode is on
|
||||||
|
: (value) => appState.setPauseQueueProcessing(value),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
const SizedBox(height: 16),
|
||||||
|
|
||||||
// Clear Upload Queue button - always visible
|
// Clear Upload Queue button - always visible
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
|
|||||||
Reference in New Issue
Block a user