Skip to content

Commit 4cff923

Browse files
committed
Fix priority selection ignored when adding torrents
Issue #290
1 parent f6586be commit 4cff923

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/modals/add.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export function AddMagnet(props: AddCommonModalProps) {
236236
downloadDir: common.location.path,
237237
labels: common.props.labels,
238238
paused: !common.start,
239-
priority: common.priority,
239+
bandwidthPriority: common.priority,
240240
},
241241
);
242242
common.location.addPath(common.location.path);
@@ -552,7 +552,7 @@ export function AddTorrent(props: AddCommonModalProps) {
552552
downloadDir: common.location.path,
553553
labels: common.props.labels,
554554
paused: !common.start,
555-
priority: common.priority,
555+
bandwidthPriority: common.priority,
556556
unwanted: (td.files == null || torrentData.length > 1) ? undefined : fileTree.getUnwanted(),
557557
filePath: td.torrentPath,
558558
},

src/rpc/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export interface TorrentAddParams {
6161
downloadDir: string,
6262
labels: string[],
6363
paused: boolean,
64-
priority: PriorityNumberType,
64+
bandwidthPriority: PriorityNumberType,
6565
unwanted?: number[],
6666
}
6767

0 commit comments

Comments
 (0)