Skip to content

Commit cc0d2d2

Browse files
committed
Add UI flows and confirmations and overall improvements while snapping and restoring
1 parent c35fa94 commit cc0d2d2

File tree

6 files changed

+1559
-338
lines changed

6 files changed

+1559
-338
lines changed

src/renderer/lib/config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ export type WinboatConfigObj = {
2424
snapshotMaxCount: number;
2525
snapshotCompression: boolean;
2626
snapshotPath: string;
27+
snapshotsInProgress: Record<string, {
28+
name: string;
29+
timestamp: number;
30+
currentSize: number;
31+
containerId?: string;
32+
}>;
2733
};
2834

2935
const defaultConfig: WinboatConfigObj = {
@@ -40,6 +46,7 @@ const defaultConfig: WinboatConfigObj = {
4046
snapshotMaxCount: 3,
4147
snapshotCompression: true,
4248
snapshotPath: path.join(WINBOAT_DIR, "snapshots"),
49+
snapshotsInProgress: {},
4350
};
4451

4552
export class WinboatConfig {
@@ -119,7 +126,7 @@ export class WinboatConfig {
119126

120127
return { ...configObj };
121128
} catch (e) {
122-
console.error("Config’s borked, outputting the default:", e);
129+
console.error("Config’s borked, outputting the default:", e);
123130
return { ...defaultConfig };
124131
}
125132
}

0 commit comments

Comments
 (0)