@basthon/gui-base 0.41.7 → 0.41.8
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.d.ts +1 -1
- package/lib/main.js +3 -3
- package/package.json +5 -5
package/lib/main.d.ts
CHANGED
package/lib/main.js
CHANGED
|
@@ -175,7 +175,7 @@ export class GUIBase {
|
|
|
175
175
|
/**
|
|
176
176
|
* Load content from local forage.
|
|
177
177
|
*/
|
|
178
|
-
async loadFromStorage() {
|
|
178
|
+
async loadFromStorage(setContent = true) {
|
|
179
179
|
var _a;
|
|
180
180
|
const approved = await this.lastBackupValid();
|
|
181
181
|
let content = null;
|
|
@@ -189,10 +189,10 @@ export class GUIBase {
|
|
|
189
189
|
const promise = new PromiseDelegate();
|
|
190
190
|
this.confirm("Récupération", "Il semble que Basthon ait rencontré un problème à sa dernière utilisation. Que voulez-vous faire ?", "Choisir une sauvegarde", async () => {
|
|
191
191
|
promise.resolve(await this.selectCheckpoint());
|
|
192
|
-
}, "
|
|
192
|
+
}, "Annuler", () => { promise.resolve(null); });
|
|
193
193
|
content = await promise.promise;
|
|
194
194
|
}
|
|
195
|
-
if (content != null)
|
|
195
|
+
if (setContent && content != null)
|
|
196
196
|
this.setContent(content);
|
|
197
197
|
return content;
|
|
198
198
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basthon/gui-base",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.8",
|
|
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.41.
|
|
29
|
-
"@basthon/kernel-base": "^0.41.
|
|
30
|
-
"@basthon/kernel-loader": "^0.41.
|
|
28
|
+
"@basthon/checkpoints": "^0.41.8",
|
|
29
|
+
"@basthon/kernel-base": "^0.41.8",
|
|
30
|
+
"@basthon/kernel-loader": "^0.41.8",
|
|
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": "aed1dc4c7399ea2043ff5290e99ba48f81fdf8bb"
|
|
45
45
|
}
|