Gonzih / pomodoro-gnome-shell

Pomodoro extension for gnome-shell
7 stars 0 forks source link

Pause doesn't really do anything #2

Closed folkg closed 13 years ago

folkg commented 13 years ago

While you can push pause and it will stop the clock from counting down, it won't actually stop the next segment from coming. In the _start_pomodoro function:

Mainloop.timeout_add_seconds(Pomodoro.time_limit / 1000, go_pomodoro);

will cause the next break segment to start no matter what, no matter how long you have it paused for.

I know this would take a big change in the way that you operate the program to fix, but I may suggest that if you ever find a way to implement the buttons, pausing may not ever even be necessary in this program.

Gonzih commented 13 years ago

yep, i will rewite that part and create some tasks mechanism, then when pause is pressed it will kill all next tasks, and recreate that after resuming