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
This commit is contained in:
		
							parent
							
								
									5876bc4a00
								
							
						
					
					
						commit
						af31aa8059
					
				@ -406,7 +406,7 @@ class _TimeoutAlert(Alert):
 | 
				
			|||||||
        self._timeout -= 1
 | 
					        self._timeout -= 1
 | 
				
			||||||
        self._timeout_text.set_text(self._timeout)
 | 
					        self._timeout_text.set_text(self._timeout)
 | 
				
			||||||
        if self._timeout == 0:
 | 
					        if self._timeout == 0:
 | 
				
			||||||
            Alert._response(self, Gtk.ResponseType.OK)
 | 
					            Alert._response(self, -1)
 | 
				
			||||||
            return False
 | 
					            return False
 | 
				
			||||||
        return True
 | 
					        return True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user