mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Added priority actions in Web UI
This commit is contained in:
parent
4c6359276c
commit
330905da5e
8 changed files with 43 additions and 13 deletions
|
@ -202,34 +202,36 @@ void HttpConnection::respondCommand(QString command)
|
|||
emit torrentReadyToBeDownloaded(filePath, false, QString(), false);
|
||||
return;
|
||||
}
|
||||
if(command == "resumeall")
|
||||
{
|
||||
if(command == "resumeall") {
|
||||
emit resumeAllTorrents();
|
||||
return;
|
||||
}
|
||||
if(command == "pauseall")
|
||||
{
|
||||
if(command == "pauseall") {
|
||||
emit pauseAllTorrents();
|
||||
return;
|
||||
}
|
||||
if(command == "resume")
|
||||
{
|
||||
if(command == "resume") {
|
||||
emit resumeTorrent(parser.post("hash"));
|
||||
return;
|
||||
}
|
||||
if(command == "pause")
|
||||
{
|
||||
if(command == "pause") {
|
||||
emit pauseTorrent(parser.post("hash"));
|
||||
return;
|
||||
}
|
||||
if(command == "delete")
|
||||
{
|
||||
if(command == "delete") {
|
||||
emit deleteTorrent(parser.post("hash"), false);
|
||||
return;
|
||||
}
|
||||
if(command == "deletePerm")
|
||||
{
|
||||
if(command == "deletePerm") {
|
||||
emit deleteTorrent(parser.post("hash"), true);
|
||||
return;
|
||||
}
|
||||
if(command == "increasePrio") {
|
||||
emit increasePrioTorrent(parser.post("hash"));
|
||||
return;
|
||||
}
|
||||
if(command == "decreasePrio") {
|
||||
emit decreasePrioTorrent(parser.post("hash"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue