Fix project tree refresh build break after rebase

This commit is contained in:
h3p 2026-02-19 10:12:09 +01:00
parent f4996e6476
commit 51e82246cf
3 changed files with 4 additions and 5 deletions

View file

@ -358,7 +358,7 @@
CODE_SIGNING_ALLOWED = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 269;
CURRENT_PROJECT_VERSION = 270;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = CS727NF72U;
ENABLE_APP_SANDBOX = YES;
@ -439,7 +439,7 @@
CODE_SIGNING_ALLOWED = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 269;
CURRENT_PROJECT_VERSION = 270;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = CS727NF72U;
ENABLE_APP_SANDBOX = YES;

View file

@ -449,7 +449,6 @@ extension ContentView {
func refreshProjectTree() {
guard let root = projectRootFolderURL else { return }
projectTreeRefreshTask = nil
projectTreeRefreshGeneration &+= 1
let generation = projectTreeRefreshGeneration
DispatchQueue.global(qos: .utility).async {
@ -514,8 +513,7 @@ extension ContentView {
ProjectTreeNode(
url: url,
isDirectory: isDirectory,
children: children,
isChildrenLoaded: !isDirectory || recursive
children: children
)
)
}

View file

@ -115,6 +115,7 @@ struct ContentView: View {
@State var showCompactSidebarSheet: Bool = false
@State var projectRootFolderURL: URL? = nil
@State var projectTreeNodes: [ProjectTreeNode] = []
@State var projectTreeRefreshGeneration: Int = 0
@State var showProjectFolderPicker: Bool = false
@State var projectFolderSecurityURL: URL? = nil
@State var pendingCloseTabID: UUID? = nil