Skip to content

Commit a65da4e

Browse files
committed
Add deactivate message when turning off auto-reload
1 parent 2698531 commit a65da4e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,13 +737,15 @@ def clear_modules_and_reevaluate(self):
737737

738738
def toggle_file_watch(self):
739739
if self.watcher:
740-
msg = "Auto-reloading active, watching for file changes..."
741740
if self.watching_files:
741+
msg = "Auto-reloading deactivated"
742+
self.status_bar.message(msg)
742743
self.watcher.deactivate()
743744
self.watching_files = False
744745
else:
745-
self.watching_files = True
746+
msg = "Auto-reloading active, watching for file changes..."
746747
self.status_bar.message(msg)
748+
self.watching_files = True
747749
self.watcher.activate()
748750
else:
749751
self.status_bar.message('Autoreloading not available because watchdog not installed')

0 commit comments

Comments
 (0)