/loggerouter/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerouter/trunk

« back to all changes in this revision

Viewing changes to src/timer.vala

  • Committer: Gustav Hartvigsson
  • Date: 2025-06-16 19:36:56 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20250616193656-22lmuvenhe3407ol
[timer.vala] Fixed the timeout being triggered even is user has pressed concle.
[*] Fixed spelling of function present_dialog ()
[options.vala] Added to_string method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
 
79
79
    close_button = new Gtk.Button.with_label ("Cancel");
80
80
    close_button.clicked.connect (() => {
 
81
      _time = -1;
81
82
      return_to_caller (ExitCode.CANCEL);
82
83
    });
83
84
    button_box.append (close_button);
123
124
  }
124
125
 
125
126
  private bool label_update () {
 
127
    if (_time <= -1) {
 
128
      return false;
 
129
    }
126
130
    if (_time == 0) {
127
131
      return_to_caller (ExitCode.OK);
128
132
      return false;