mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
feat: removing publishers
This commit is contained in:
parent
3a1fa9ab00
commit
4476b1b216
@ -26,6 +26,7 @@ import {
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { UserFriendModal } from "./pages/shared-modals/user-friend-modal";
|
import { UserFriendModal } from "./pages/shared-modals/user-friend-modal";
|
||||||
import { downloadSourcesWorker } from "./workers";
|
import { downloadSourcesWorker } from "./workers";
|
||||||
|
import { downloadSourcesTable } from "./dexie";
|
||||||
|
|
||||||
export interface AppProps {
|
export interface AppProps {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
@ -205,6 +206,18 @@ export function App() {
|
|||||||
const newRepacksCount = event.data;
|
const newRepacksCount = event.data;
|
||||||
window.electron.publishNewRepacksNotification(newRepacksCount);
|
window.electron.publishNewRepacksNotification(newRepacksCount);
|
||||||
updateRepacks();
|
updateRepacks();
|
||||||
|
|
||||||
|
downloadSourcesTable.toArray().then((downloadSources) => {
|
||||||
|
downloadSources
|
||||||
|
.filter((source) => !source.fingerprint)
|
||||||
|
.forEach((downloadSource) => {
|
||||||
|
window.electron
|
||||||
|
.putDownloadSource(downloadSource.objectIds)
|
||||||
|
.then(({ fingerprint }) => {
|
||||||
|
downloadSourcesTable.update(downloadSource.id, { fingerprint });
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
downloadSourcesWorker.postMessage(["SYNC_DOWNLOAD_SOURCES", id]);
|
downloadSourcesWorker.postMessage(["SYNC_DOWNLOAD_SOURCES", id]);
|
||||||
|
Loading…
Reference in New Issue
Block a user