fix(history): remove selections atomically

This commit is contained in:
Sucukdeluxe
2026-08-21 00:59:45 +02:00
parent 3a95136ef1
commit 869dbc25be
11 changed files with 107 additions and 20 deletions
+1
View File
@@ -82,6 +82,7 @@ export const IPC_CHANNELS = {
HISTORY_ENTRY_ADDED: "history:entry-added",
CLEAR_HISTORY: "history:clear",
REMOVE_HISTORY_ENTRY: "history:remove-entry",
REMOVE_HISTORY_ENTRIES: "history:remove-entries",
REVEAL_HISTORY_ENTRY: "history:reveal-entry",
SET_PACKAGE_PRIORITY: "queue:set-package-priority",
SKIP_ITEMS: "queue:skip-items",
+1
View File
@@ -145,6 +145,7 @@ export interface ElectronApi {
onHistoryEntryAdded: (callback: (entry: HistoryEntry) => void) => () => void;
clearHistory: () => Promise<void>;
removeHistoryEntry: (entryId: string) => Promise<void>;
removeHistoryEntries: (entryIds: string[]) => Promise<void>;
revealHistoryEntry: (entryId: string) => Promise<HistoryRevealResult>;
setPackagePriority: (packageId: string, priority: PackagePriority) => Promise<void>;
skipItems: (itemIds: string[]) => Promise<void>;