Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Undo keeps the last removal while a Put Back is running
Țugui Dragoșc3251450c9a6
diff --git a/Peel/Model/RemovalHistoryStore.swift b/Peel/Model/RemovalHistoryStore.swiftindex bf7dd9cf..2e53b5c6 100644--- a/Peel/Model/RemovalHistoryStore.swift+++ b/Peel/Model/RemovalHistoryStore.swift@@ -243,8 +243,10 @@ final class RemovalHistoryStore {/// The name the Edit menu shows, and nil when there is nothing to undo.var undoName: String? { undoable?.source }+ /// Puts the last batch back. Nothing happens while another Put Back runs, and the batch stays undoable: `restore`+ /// takes one at a time and would drop this one without a word.func undoLastRemoval() async {- guard let undoable else { return }+ guard let undoable, !isRestoring else { return }self.undoable = nilawait restore(undoable.records, canUseHelper: canUseHelper)}