Oops, send the restore packet!
This commit is contained in:
parent
5039722d90
commit
27fb1861c0
1 changed files with 6 additions and 0 deletions
|
@ -151,6 +151,12 @@ class SnapshotListState extends State<SnapshotListPage> {
|
||||||
if (result == null) return;
|
if (result == null) return;
|
||||||
C2SRequestWorldRestore rwr = C2SRequestWorldRestore();
|
C2SRequestWorldRestore rwr = C2SRequestWorldRestore();
|
||||||
rwr.snapshot = filename;
|
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),
|
icon: Icon(Icons.restore),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue