macOS: Fix broken subroute navigation in modules

This commit is contained in:
Davide 2025-02-12 15:18:42 +01:00
parent ecf37558ec
commit e4333965bd
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
2 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,6 @@ struct ProfileGeneralView: View {
) )
} }
.themeForm() .themeForm()
.navigationDestinations(for: profileEditor, path: $path)
} }
} }

View File

@ -69,9 +69,11 @@ struct ProfileSplitView: View, Routable {
switch selectedModuleId { switch selectedModuleId {
case ModuleListView.generalModuleId: case ModuleListView.generalModuleId:
detailView(for: .general) detailView(for: .general)
.navigationDestinations(for: profileEditor, path: $detailPath)
default: default:
detailView(for: .module(id: selectedModuleId)) detailView(for: .module(id: selectedModuleId))
.navigationDestinations(for: profileEditor, path: $detailPath)
} }
} }
.themeNavigationStack(path: $detailPath) .themeNavigationStack(path: $detailPath)