mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-10-09 17:34:14 +02:00
Fix changesets not getting closed, other updates to queue mechanism
This commit is contained in:
1 parent
560a5db14d
commit
dccafc898b
19 files changed
+1072
-136
No files matched your search
@@ -478,6 +478,14 @@ class AppState extends ChangeNotifier {
|
||||
await _settingsState.setNetworkStatusIndicatorEnabled(enabled);
|
||||
}
|
||||
|
||||
/// Migrate upload queue to new two-stage changeset system (v1.5.3)
|
||||
Future<void> migrateUploadQueueToTwoStageSystem() async {
|
||||
// Migration is handled automatically in PendingUpload.fromJson via _migrateFromLegacyFields
|
||||
// This method triggers a queue reload to apply migrations
|
||||
await _uploadQueueState.reloadQueue();
|
||||
debugPrint('[AppState] Upload queue migration completed');
|
||||
}
|
||||
|
||||
/// Set suspected location minimum distance from real nodes
|
||||
Future<void> setSuspectedLocationMinDistance(int distance) async {
|
||||
await _settingsState.setSuspectedLocationMinDistance(distance);
|
||||
|
||||
Reference in new issue
Block a user