From 5e8b061d104ebceb95f12c39f73a7e51cb250d94 Mon Sep 17 00:00:00 2001 From: leminlimez <59540996+leminlimez@users.noreply.github.com> Date: Sun, 1 Jun 2025 06:32:43 -0400 Subject: [PATCH] remove tendies list upon apply --- Pocket Poster.xcodeproj/project.pbxproj | 4 ++-- Pocket Poster/Views/ContentView.swift | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Pocket Poster.xcodeproj/project.pbxproj b/Pocket Poster.xcodeproj/project.pbxproj index ea27365..f6d0590 100644 --- a/Pocket Poster.xcodeproj/project.pbxproj +++ b/Pocket Poster.xcodeproj/project.pbxproj @@ -261,7 +261,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 3; + CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_ASSET_PATHS = "\"Pocket Poster/Preview Content\""; DEVELOPMENT_TEAM = 2P4CP47H76; ENABLE_PREVIEWS = YES; @@ -293,7 +293,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 3; + CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_ASSET_PATHS = "\"Pocket Poster/Preview Content\""; DEVELOPMENT_TEAM = 2P4CP47H76; ENABLE_PREVIEWS = YES; diff --git a/Pocket Poster/Views/ContentView.swift b/Pocket Poster/Views/ContentView.swift index 633ef34..b284109 100644 --- a/Pocket Poster/Views/ContentView.swift +++ b/Pocket Poster/Views/ContentView.swift @@ -70,10 +70,11 @@ struct ContentView: View { } Section { - if let selectedTendies = selectedTendies, pbHash != "" { + if selectedTendies != nil && pbHash != "" { Button(action: { do { - try PosterBoardManager.applyTendies(selectedTendies, appHash: pbHash) + try PosterBoardManager.applyTendies(selectedTendies!, appHash: pbHash) + selectedTendies = nil lastError = "The PosterBoard app will now open. Please close it from the app switcher." showSuccessAlert.toggle() } catch {