Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Aug 17, 2024
1 parent 18cc588 commit ecb6ca6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions nomadnet/ui/textui/Log.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,10 @@ def terminate(self):


def log_widget(app, platform=sys.platform):
if platform == "linux":
return LogTerminal(app)
elif platform == "win32":
if platform == "win32":
return LogTail(app)
else:
raise ValueError(f"Unknown platform {platform}. Expected linux/win32")

return LogTerminal(app)

# https://stackoverflow.com/a/34029605/3713120
def _tail(f_name, n, offset=0):
Expand Down

0 comments on commit ecb6ca6

Please sign in to comment.