feat(downloads): recover missing completed files

This commit is contained in:
4gray committed 2026-08-01 16:29:50 +02:00
1 parent bd61426d8e
commit 8a685ebf20
10 files changed
+361 -1

No files matched your search

@@ -100,6 +100,7 @@ describe('RuntimeCapabilitiesService', () => {
downloadsPause: jest.fn(),
downloadsResume: jest.fn(),
downloadsRetry: jest.fn(),
downloadsRedownloadMissing: jest.fn(),
downloadsRemove: jest.fn(),
downloadsGetList: jest.fn(),
downloadsGet: jest.fn(),
@@ -382,6 +383,13 @@ describe('RuntimeCapabilitiesService', () => {
onDownloadsUpdate: jest.fn(),
};
expect(service.supportsDownloads).toBe(false);
testWindow.electron = {
...testWindow.electron,
downloadsRedownloadMissing: jest.fn(),
};
expect(service.supportsDownloads).toBe(true);
});
@@ -186,6 +186,7 @@ export class RuntimeCapabilitiesService {
'downloadsPause',
'downloadsResume',
'downloadsRetry',
'downloadsRedownloadMissing',
'downloadsRemove',
'downloadsGetList',
'downloadsGet',