Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not print speech bubble on decoded message in GUI #46

Merged
merged 3 commits into from
Dec 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions covert/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,16 +215,16 @@ def decrypt_attempt(self):
f.seek(0)
data = f.read()
try:
self.plaintext.appendPlainText(f" 💬\n{data.decode()}")
self.plaintext.appendPlainText(f"{data.decode()}\n")
except UnicodeDecodeError:
pidx = a.flist.index(prev)
prev.name = f"noname.{pidx + 1:03}"
prev.renamed = True
f.close()
f = None
if prev and prev.name is not None:
r = '<renamed>' if prev.renamed else ''
self.plaintext.appendPlainText(f'{prev.size:15,d} 📄 {prev.name:60}{r}'.rstrip())
#if prev and prev.name is not None:
#r = '<renamed>' if prev.renamed else ''
#self.plaintext.appendPlainText(f'{prev.size:15,d} 📄 {prev.name:60}{r}'.rstrip())
if a.curfile:
# Is it a displayable message?
if a.curfile.name is None and a.curfile.size is not None and a.curfile.size < TTY_MAX_SIZE:
Expand Down