[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [arm/master] fix: Don't revert quit confirmation if 'yes'
commit 45adb1c8036ef0b89eb58606fc2c559b38c82a27
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Wed May 4 19:10:56 2011 -0700
fix: Don't revert quit confirmation if 'yes'
Due to changes in pause functionality the message when confirming that you want
to quit would be reverted, even when you answer 'yes' to shut arm down (just a
brief flicker while quitting).
---
src/cli/controller.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/cli/controller.py b/src/cli/controller.py
index 91c34df..512e5ba 100644
--- a/src/cli/controller.py
+++ b/src/cli/controller.py
@@ -808,7 +808,8 @@ def drawTorMonitor(stdscr, startTime, loggedEvents, isBlindMode):
quitConfirmed = confirmationKey in (ord('q'), ord('Q'))
curses.halfdelay(REFRESH_RATE * 10)
- panels["control"].setMsg(CTL_PAUSED if isPaused else CTL_HELP)
+ if not quitConfirmed:
+ panels["control"].setMsg(CTL_PAUSED if isPaused else CTL_HELP)
setPauseState(panels, isPaused, page)
finally:
panel.CURSES_LOCK.release()
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits