Skip to content

Commit

Permalink
Actually Driver.close in the right place!
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed Jan 31, 2024
1 parent 025ac85 commit df73e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textual/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def suspend_application_mode(self) -> None:
terminal.
"""
self.stop_application_mode()
self.close()

def resume_application_mode(self) -> None:
"""Resume application mode.
Expand All @@ -141,7 +142,6 @@ def resume_application_mode(self) -> None:
suspended.
"""
self.start_application_mode()
self.close()

class SignalResume(events.Event):
"""Event sent to the app when a resume signal should be published."""
Expand Down

0 comments on commit df73e71

Please sign in to comment.