From 27fb1861c0a101d374f85d15e3dee76c129064ef Mon Sep 17 00:00:00 2001 From: zontreck Date: Tue, 2 Jul 2024 18:04:51 -0700 Subject: [PATCH] Oops, send the restore packet! --- lib/pages/snapshots.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/pages/snapshots.dart b/lib/pages/snapshots.dart index 2fbad18..e7912da 100644 --- a/lib/pages/snapshots.dart +++ b/lib/pages/snapshots.dart @@ -151,6 +151,12 @@ class SnapshotListState extends State { if (result == null) return; C2SRequestWorldRestore rwr = C2SRequestWorldRestore(); rwr.snapshot = filename; + + settings.client!.send(rwr, true); + + ScaffoldMessenger.of(context).showSnackBar(SnackBar( + content: Text( + "Restore has been requested, follow Discord for further updates"))); }, icon: Icon(Icons.restore), ),