This commit is contained in:
Alin
2024-04-18 11:27:04 -06:00
parent 234820bc8f
commit b8830dff5c
5 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -560,8 +560,8 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
APP_BUILD = 34;
APP_VERSION = 3.5.0;
APP_BUILD = 35;
APP_VERSION = 3.5.1;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
@@ -630,8 +630,8 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
APP_BUILD = 34;
APP_VERSION = 3.5.0;
APP_BUILD = 35;
APP_VERSION = 3.5.1;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+5
View File
@@ -374,6 +374,7 @@ func killApp(appId: String, completion: @escaping () -> Void = {}) {
// Remove app from cache
func removeApp(appState: AppState, withId id: UUID) {
@AppStorage("settings.general.brew") var brew: Bool = false
DispatchQueue.main.async {
// Remove from sortedApps if found
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 }) {
appState.appInfoStore.remove(at: index)
}
// Brew cleanup if enabled
if brew {
caskCleanup(app: appState.appInfo.appName)
}
}
}
+1 -1
View File
@@ -324,7 +324,7 @@ struct GeneralSettingsTab: View {
}
.padding(20)
.frame(width: 500, height: 600)
.frame(width: 500, height: 570)
}
+1 -1
View File
@@ -506,7 +506,7 @@ struct InterfaceSettingsTab: View {
}
.padding(20)
.frame(width: 500, height: 550)
.frame(width: 500, height: 570)
}
-5
View File
@@ -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
if selectedItemsArray.contains(where: { $0.absoluteString == appState.appInfo.path.absoluteString }) {
removeApp(appState: appState, withId: appState.appInfo.id)