Fix: TimeoutAlert response on Timeout

Explanation:
There was inconsistency between docs and the code.
 - Docs said it returns -1 on timeout
 - Code returned Gtk.Response.OK on timeout

Effect of this commit:
 - Code returns -1 on timeout
master
Pro-Panda 6 years ago committed by James Cameron
parent 5876bc4a00
commit af31aa8059

@ -406,7 +406,7 @@ class _TimeoutAlert(Alert):
self._timeout -= 1
self._timeout_text.set_text(self._timeout)
if self._timeout == 0:
Alert._response(self, Gtk.ResponseType.OK)
Alert._response(self, -1)
return False
return True

Loading…
Cancel
Save