Move upload queue pause toggle from offline to queue page in settings

This commit is contained in:
stopflock
2026-02-03 17:00:02 -06:00
parent 38245bfb5b
commit 5df16f376d
4 changed files with 28 additions and 23 deletions
@@ -77,27 +77,7 @@ class OfflineModeSection extends StatelessWidget {
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),
),
),
],
);
},
+25
View File
@@ -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
SizedBox(
width: double.infinity,