@basthon/gui-base 0.40.6 → 0.40.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/main.js +7 -1
- package/package.json +5 -5
package/lib/main.js
CHANGED
|
@@ -224,7 +224,13 @@ export class GUIBase {
|
|
|
224
224
|
}));
|
|
225
225
|
if (choices == null)
|
|
226
226
|
return null;
|
|
227
|
-
|
|
227
|
+
if (choices.length === 0) {
|
|
228
|
+
this.info("Aucune sauvegarde à restaurer", "Il n'y a aucune sauvegarde à restaurer !");
|
|
229
|
+
promise.resolve(null);
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
this.select("Choisissez une sauvegarde", "De quelle sauvegarde souhaitez-vous reprendre ?", choices, "Annuler", () => { promise.resolve(null); });
|
|
233
|
+
}
|
|
228
234
|
return await promise.promise;
|
|
229
235
|
}
|
|
230
236
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basthon/gui-base",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.10",
|
|
4
4
|
"description": "Basthon - Base GUI",
|
|
5
5
|
"homepage": "https://basthon.fr",
|
|
6
6
|
"bugs": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"clean": "rm -rf lib/"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@basthon/checkpoints": "^0.40.
|
|
29
|
-
"@basthon/kernel-base": "^0.40.
|
|
30
|
-
"@basthon/kernel-loader": "^0.40.
|
|
28
|
+
"@basthon/checkpoints": "^0.40.10",
|
|
29
|
+
"@basthon/kernel-base": "^0.40.10",
|
|
30
|
+
"@basthon/kernel-loader": "^0.40.10",
|
|
31
31
|
"js-base64": "^3.7.2",
|
|
32
32
|
"pako": "^2.0.4",
|
|
33
33
|
"promise-delegate": "^1.0.1"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "6743685028a8e6a6020cc9438785648641d8e1a1"
|
|
45
45
|
}
|