Skip to content

Commit

Permalink
fix menu disabled for resume failed task
Browse files Browse the repository at this point in the history
  • Loading branch information
riderkick committed May 10, 2015
1 parent fc2db07 commit cbb913e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mangadownloader/forms/frmMain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2883,7 +2883,7 @@ procedure TMainForm.pmDownloadPopup(Sender: TObject);
if vtDownload.SelectedCount = 1 then
begin
miDownloadStop.Enabled := (containers[vtDownload.FocusedNode^.Index].Status in [STATUS_DOWNLOAD, STATUS_WAIT]);
miDownloadResume.Enabled := (containers[vtDownload.FocusedNode^.Index].Status = STATUS_STOP);
miDownloadResume.Enabled := (containers[vtDownload.FocusedNode^.Index].Status in [STATUS_STOP, STATUS_FAILED, STATUS_PROBLEM]);
miDownloadRemove.Enabled := True;
miDeleteTask.Enabled := True;
miDeleteTaskData.Enabled := True;
Expand All @@ -2896,7 +2896,7 @@ procedure TMainForm.pmDownloadPopup(Sender: TObject);
else
begin
miDownloadStop.Enabled := SelectedTaskStatusPresent([STATUS_DOWNLOAD, STATUS_WAIT]);
miDownloadResume.Enabled := SelectedTaskStatusPresent([STATUS_STOP]);
miDownloadResume.Enabled := SelectedTaskStatusPresent([STATUS_STOP, STATUS_FAILED, STATUS_PROBLEM]);
miDownloadRemove.Enabled := True;
miDeleteTask.Enabled := True;
miDeleteTaskData.Enabled := True;
Expand Down

0 comments on commit cbb913e

Please sign in to comment.