Ignore:
Timestamp:
05/15/10 13:22:08 (4 years ago)
Author:
lowjoel
Message:
  • Define the behaviour of Run immediately (run now tasks) and Run manually: after a run now task is complete, it is reset to run manually; if a run immediately task is saved to the task list, upon load, it is automatically queued for running.
  • As a result, we don't need to worry about having blank "task status" entries when the task is set to run immediately upon creation. This would revert r1969
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser/SchedulerPanel.cs

    r2118 r2129  
    9191 
    9292            //Set the next run time of the task 
    93             if (task.Queued) 
     93            if (task.Queued || task.Schedule == Schedule.RunNow) 
    9494            { 
    9595                item.SubItems[1].Text = S._("Queued for execution"); 
    9696                item.SubItems[2].Text = string.Empty; 
    9797            } 
    98             else if (task.Executing && !schedulerProgress.Visible) 
    99                 task_TaskStarted(null, EventArgs.Empty); 
    10098            else if (task.Schedule is RecurringSchedule) 
    10199                item.SubItems[1].Text = ((task.Schedule as RecurringSchedule).NextRun. 
    102100                    ToString("F", CultureInfo.CurrentCulture)); 
    103             else if (task.Schedule == Schedule.RunNow || task.Schedule == Schedule.RunManually) 
     101            else if (task.Schedule == Schedule.RunManually) 
    104102                item.SubItems[1].Text = S._("Not queued"); 
    105103            else 
Note: See TracChangeset for help on using the changeset viewer.