Skip to content

Commit 7abf49c

Browse files
committed
Fix file url bug
1 parent 78c28a6 commit 7abf49c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

qBitControl.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@
852852
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
853853
CODE_SIGN_ENTITLEMENTS = qBitControl/qBitControl.entitlements;
854854
CODE_SIGN_STYLE = Automatic;
855-
CURRENT_PROJECT_VERSION = 16;
855+
CURRENT_PROJECT_VERSION = 17;
856856
DEVELOPMENT_ASSET_PATHS = "";
857857
DEVELOPMENT_TEAM = 626XV358Y5;
858858
ENABLE_PREVIEWS = YES;
@@ -888,7 +888,7 @@
888888
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
889889
CODE_SIGN_ENTITLEMENTS = qBitControl/qBitControl.entitlements;
890890
CODE_SIGN_STYLE = Automatic;
891-
CURRENT_PROJECT_VERSION = 16;
891+
CURRENT_PROJECT_VERSION = 17;
892892
DEVELOPMENT_ASSET_PATHS = "";
893893
DEVELOPMENT_TEAM = 626XV358Y5;
894894
ENABLE_PREVIEWS = YES;

qBitControl/Views/SearchViews/SearchView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ struct SearchView: View {
5656
}
5757
}.sheet(isPresented: $viewModel.isFilterSheet) {
5858
SearchFiltersView(viewModel: viewModel)
59-
}.sheet(isPresented: $viewModel.isTorrentAddSheet) { if let url = URL(string: self.viewModel.tappedResult?.fileName ?? "") { TorrentAddView(torrentUrls: .constant([url]), magnetOverride: true) } }
59+
}.sheet(isPresented: $viewModel.isTorrentAddSheet) { if let url = URL(string: self.viewModel.tappedResult?.fileUrl ?? "") { TorrentAddView(torrentUrls: .constant([url]), magnetOverride: true) } }
6060
}
6161
}

0 commit comments

Comments
 (0)