mirror of
https://github.com/exituser/Pearcleaner.git
synced 2026-09-17 04:58:56 +00:00
v3.5.1
This commit is contained in:
@@ -560,8 +560,8 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
APP_BUILD = 34;
|
APP_BUILD = 35;
|
||||||
APP_VERSION = 3.5.0;
|
APP_VERSION = 3.5.1;
|
||||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||||
@@ -630,8 +630,8 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
APP_BUILD = 34;
|
APP_BUILD = 35;
|
||||||
APP_VERSION = 3.5.0;
|
APP_VERSION = 3.5.1;
|
||||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||||
|
|||||||
@@ -374,6 +374,7 @@ func killApp(appId: String, completion: @escaping () -> Void = {}) {
|
|||||||
|
|
||||||
// Remove app from cache
|
// Remove app from cache
|
||||||
func removeApp(appState: AppState, withId id: UUID) {
|
func removeApp(appState: AppState, withId id: UUID) {
|
||||||
|
@AppStorage("settings.general.brew") var brew: Bool = false
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
// Remove from sortedApps if found
|
// Remove from sortedApps if found
|
||||||
if let index = appState.sortedApps.firstIndex(where: { $0.id == id }) {
|
if let index = appState.sortedApps.firstIndex(where: { $0.id == id }) {
|
||||||
@@ -384,6 +385,10 @@ func removeApp(appState: AppState, withId id: UUID) {
|
|||||||
if let index = appState.appInfoStore.firstIndex(where: { $0.id == id }) {
|
if let index = appState.appInfoStore.firstIndex(where: { $0.id == id }) {
|
||||||
appState.appInfoStore.remove(at: index)
|
appState.appInfoStore.remove(at: index)
|
||||||
}
|
}
|
||||||
|
// Brew cleanup if enabled
|
||||||
|
if brew {
|
||||||
|
caskCleanup(app: appState.appInfo.appName)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ struct GeneralSettingsTab: View {
|
|||||||
|
|
||||||
}
|
}
|
||||||
.padding(20)
|
.padding(20)
|
||||||
.frame(width: 500, height: 600)
|
.frame(width: 500, height: 570)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -506,7 +506,7 @@ struct InterfaceSettingsTab: View {
|
|||||||
|
|
||||||
}
|
}
|
||||||
.padding(20)
|
.padding(20)
|
||||||
.frame(width: 500, height: 550)
|
.frame(width: 500, height: 570)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -295,11 +295,6 @@ struct FilesView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Brew cleanup if enabled
|
|
||||||
if brew {
|
|
||||||
caskCleanup(app: appState.appInfo.appName)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove app from app list if main app bundle is removed
|
// Remove app from app list if main app bundle is removed
|
||||||
if selectedItemsArray.contains(where: { $0.absoluteString == appState.appInfo.path.absoluteString }) {
|
if selectedItemsArray.contains(where: { $0.absoluteString == appState.appInfo.path.absoluteString }) {
|
||||||
removeApp(appState: appState, withId: appState.appInfo.id)
|
removeApp(appState: appState, withId: appState.appInfo.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user