Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Put the menu bar setting's comment above the function it describes

Țugui Dragoșd760a8a9d272
diff --git a/Peel/Views/Settings/SettingsView.swift b/Peel/Views/Settings/SettingsView.swift
index a38383ec..46fcdfb9 100644
--- a/Peel/Views/Settings/SettingsView.swift
+++ b/Peel/Views/Settings/SettingsView.swift
@@ -159,7 +159,6 @@ enum SettingsKey {
}
extension SettingsKey {
- /// With no value yet, Peel shows in the menu bar exactly when it watches the Trash.
/// Carries the tools a person left out before each tool had a default into their choices, once. An empty list
/// carries no choice, so every tool starts at its default.
static func keepSidebarChoicesAsBefore() {
@@ -171,6 +170,7 @@ extension SettingsKey {
defaults.removeObject(forKey: hiddenToolsBefore)
}
+ /// With no value yet, Peel shows in the menu bar exactly when it watches the Trash.
static func showInMenuBarAsBefore() {
let defaults = UserDefaults.standard
guard defaults.object(forKey: showsInMenuBar) == nil else { return }