Ready for land.
See commits.
martinkostolny |
Krusader |
Ready for land.
See commits.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
I like it, thanks! The start mode enum makes the code more understandable.
Problem: Jobs created with "F2 Queue" are not started in queue (if queue mode is off)
I may be wrong but I believe this can be resolved by storing the startMode in the KrJob itself and then rely on it in JobMan::slotTerminated(KrJob *krJob) method.
This look nice, almost perfect :)).
Please see my comment inside JobMan::slotTerminated method.
I can see we probably still misunderstand each other a little, so I try to write down several use-cases I believe we are trying to achieve:
Admittedly the fifth use-case is what I was used to before. But if I'm the only one, I definitely don't want to stand in your way and I'm open to new ways of managing such use cases! :)
krusader/JobMan/jobman.cpp | ||
---|---|---|
327–328 | If you remove _queueMode from the conditional, I'll be totally happy with this whole patch! |
Ok, coming back to this. I needed some time to re-think it.
You're right, with the current F2 options this is the best way now and there is no direct misbehaviour.
It makes not much sense if only we two discuss this. And until a release with the new job manager is published we probably won't get more opinions.
It could also endlessly be extended: with two lists (like you said) or even more user created queues + a dialog for creating/saving/renaming queues + categories (running/paused/finished/...) for each queue; end so on...
With this last change I consider this "good enough" for now and we can wait until somebody complains:)
This is perfect, thanks!
It makes not much sense if only we two discuss this.
I was thinking the same thing. :)
It could also endlessly be extended (...)
With this last change I consider this "good enough" for now and we can wait until somebody complains:)
Agreed, lets see what the "world" says.