mirror of
https://github.com/exituser/Pearcleaner.git
synced 2026-09-17 07:19:04 +00:00
Small changes
This commit is contained in:
@@ -135,7 +135,7 @@ let skipConditions: [SkipCondition] = [
|
|||||||
|
|
||||||
|
|
||||||
// Skip files/folders during leftover file search
|
// Skip files/folders during leftover file search
|
||||||
let skipReverse = ["apple", "temporary", "btserver", "proapps", "scripteditor", "ilife", "livefsd", "siritoday", "addressbook", "animoji", "appstore", "askpermission", "callhistory", "clouddocs", "diskimages", "dock", "facetime", "fileprovider", "instruments", "knowledge", "mobilesync", "syncservices", "homeenergyd", "icloud", "icdd", "networkserviceproxy", "familycircle", "geoservices", "installation", "passkit", "sharedimagecache", "desktop", "mbuseragent", "swiftpm", "baseband", "coresimulator", "photoslegacyupgrade", "photosupgrade", "siritts", "ipod", "globalpreferences", "apmanalytics", "apmexperiment", "avatarcache", "byhost", "contextstoreagent", "mobilemeaccounts", "intentbuilderc", "loginwindow", "momc", "replayd", "sharedfilelistd", "clang", "audiocomponent", "csexattrcryptoservice", "livetranscriptionagent", "sandboxhelper", "statuskitagent", "betaenrollmentd", "contentlinkingd", "diagnosticextensionsd", "gamed", "heard", "homed", "itunescloudd", "lldb", "mds", "mediaanalysisd", "metrickitd", "mobiletimerd", "proactived", "ptpcamerad", "studentd", "talagent", "watchlistd", "apptranslocation", "xcrun", "ds_store", "caches", "crashreporter", "trash", "pearcleaner", "amsdatamigratortool", "arfilecache", "assistant", "chromium", "cloudkit", "webkit", "databases", "diagnostic", "cache", "gamekit", "homebrew", "logi", "microsoft", "mozilla", "sync", "google", "sentinel", "hexnode", "sentry", "tvappservices", "reminders"]
|
let skipReverse = ["apple", "temporary", "btserver", "proapps", "scripteditor", "ilife", "livefsd", "siritoday", "addressbook", "animoji", "appstore", "askpermission", "callhistory", "clouddocs", "diskimages", "dock", "facetime", "fileprovider", "instruments", "knowledge", "mobilesync", "syncservices", "homeenergyd", "icloud", "icdd", "networkserviceproxy", "familycircle", "geoservices", "installation", "passkit", "sharedimagecache", "desktop", "mbuseragent", "swiftpm", "baseband", "coresimulator", "photoslegacyupgrade", "photosupgrade", "siritts", "ipod", "globalpreferences", "apmanalytics", "apmexperiment", "avatarcache", "byhost", "contextstoreagent", "mobilemeaccounts", "mobiledocuments", "mobile", "intentbuilderc", "loginwindow", "momc", "replayd", "sharedfilelistd", "clang", "audiocomponent", "csexattrcryptoservice", "livetranscriptionagent", "sandboxhelper", "statuskitagent", "betaenrollmentd", "contentlinkingd", "diagnosticextensionsd", "gamed", "heard", "homed", "itunescloudd", "lldb", "mds", "mediaanalysisd", "metrickitd", "mobiletimerd", "proactived", "ptpcamerad", "studentd", "talagent", "watchlistd", "apptranslocation", "xcrun", "ds_store", "caches", "crashreporter", "trash", "pearcleaner", "amsdatamigratortool", "arfilecache", "assistant", "chromium", "cloudkit", "webkit", "databases", "diagnostic", "cache", "gamekit", "homebrew", "logi", "microsoft", "mozilla", "sync", "google", "sentinel", "hexnode", "sentry", "tvappservices", "reminders"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -342,14 +342,6 @@ extension NSImage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func startEnd(_ function: @escaping () -> Void) {
|
|
||||||
let startTime = Date() // Capture start time
|
|
||||||
function()
|
|
||||||
let endTime = Date()
|
|
||||||
let executionTime = endTime.timeIntervalSince(startTime)
|
|
||||||
printOS("Function executed in: \n\(executionTime) seconds")
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Relaunch app
|
// Relaunch app
|
||||||
func relaunchApp(afterDelay seconds: TimeInterval = 0.5) -> Never {
|
func relaunchApp(afterDelay seconds: TimeInterval = 0.5) -> Never {
|
||||||
@@ -553,7 +545,6 @@ func printOS(_ items: Any..., separator: String = " ", terminator: String = "\n"
|
|||||||
let message = items.map { "\($0)" }.joined(separator: separator)
|
let message = items.map { "\($0)" }.joined(separator: separator)
|
||||||
let log = OSLog(subsystem: "pearcleaner", category: "Application")
|
let log = OSLog(subsystem: "pearcleaner", category: "Application")
|
||||||
os_log("%@", log: log, type: .default, message)
|
os_log("%@", log: log, type: .default, message)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ struct InterfaceSettingsTab: View {
|
|||||||
.font(.callout)
|
.font(.callout)
|
||||||
.foregroundStyle(Color("mode").opacity(0.5))
|
.foregroundStyle(Color("mode").opacity(0.5))
|
||||||
}
|
}
|
||||||
// InfoButton(text: "When using a custom color, you might need to change the application color mode below to Dark or Light so text is readable")
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ struct UpdateSettingsTab: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onChange(of: updateFrequency) { frequency in
|
.onChange(of: updateFrequency) { frequency in
|
||||||
updateFrequency.updateNextUpdateDate()
|
frequency.updateNextUpdateDate()
|
||||||
}
|
}
|
||||||
.pickerStyle(themeSettings: themeSettings)
|
.pickerStyle(themeSettings: themeSettings)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ struct UpdateView: View {
|
|||||||
.padding()
|
.padding()
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
// .frame(width: appState.progressBar.1 != 1.0 ? 150 : 180)
|
|
||||||
|
|
||||||
Text("\(appState.progressBar.1 != 1.0 ? "Update Available 🥳" : "Completed 🚀")")
|
Text("\(appState.progressBar.1 != 1.0 ? "Update Available 🥳" : "Completed 🚀")")
|
||||||
.font(.title)
|
.font(.title)
|
||||||
@@ -106,11 +105,8 @@ struct UpdateView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -128,7 +124,6 @@ struct NoUpdateView: View {
|
|||||||
.padding()
|
.padding()
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
// .frame(width: appState.progressBar.1 != 1.0 ? 140 : 180)
|
|
||||||
|
|
||||||
Text("\(appState.progressBar.1 != 1.0 ? "No Update 😌" : "Completed 🚀")")
|
Text("\(appState.progressBar.1 != 1.0 ? "No Update 😌" : "Completed 🚀")")
|
||||||
.font(.title)
|
.font(.title)
|
||||||
@@ -145,12 +140,6 @@ struct NoUpdateView: View {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Text("App: \(Bundle.main.version) | GitHub: \(appState.releases.first?.tag_name ?? "")")
|
|
||||||
// .font(.title3)
|
|
||||||
// .fontWeight(.semibold)
|
|
||||||
// .opacity(0.5)
|
|
||||||
// .padding(.vertical, 5)
|
|
||||||
|
|
||||||
Divider()
|
Divider()
|
||||||
.padding([.horizontal])
|
.padding([.horizontal])
|
||||||
|
|
||||||
@@ -202,14 +191,10 @@ struct NoUpdateView: View {
|
|||||||
}
|
}
|
||||||
.padding(.bottom)
|
.padding(.bottom)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
.padding(EdgeInsets(top: -25, leading: 0, bottom: 25, trailing: 0))
|
.padding(EdgeInsets(top: -25, leading: 0, bottom: 25, trailing: 0))
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user