Sort queue by date (after priority)
This commit is contained in:
parent
ede9ef3171
commit
0f55145586
@ -155,7 +155,10 @@ proc ::auto::pending {} {
|
||||
set ba [$b get action]
|
||||
if {$aa ni $::auto::plugins} { return 0 }
|
||||
if {$ba ni $::auto::plugins} { return 0 }
|
||||
return $($::auto::plugins($aa) - $::auto::plugins($ba))
|
||||
set ap $::auto::plugins($aa)
|
||||
set bp $::auto::plugins($ba)
|
||||
if {$ap != $bp} { return $($ap - $bp) }
|
||||
return $([$b get id] - [$a get id])
|
||||
}] [queue pending]]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user