Fix a little bug in [1861]: now countdown starts immediately
This commit is contained in:
parent
93358d1b09
commit
241a0f3fda
|
@ -372,6 +372,7 @@ class ChangeStatusMessageDialog:
|
||||||
'''Wait for OK or Cancel button to be pressed and return status messsage
|
'''Wait for OK or Cancel button to be pressed and return status messsage
|
||||||
(None if users pressed Cancel or x button of WM'''
|
(None if users pressed Cancel or x button of WM'''
|
||||||
if self.countdown_time > 0:
|
if self.countdown_time > 0:
|
||||||
|
self.countdown()
|
||||||
gobject.timeout_add(1000, self.countdown)
|
gobject.timeout_add(1000, self.countdown)
|
||||||
rep = self.window.run()
|
rep = self.window.run()
|
||||||
if rep == gtk.RESPONSE_OK:
|
if rep == gtk.RESPONSE_OK:
|
||||||
|
|
Loading…
Reference in New Issue