Merge pull request #3717 from Jessonsotoventura/replay

Added Replay to new table UI
This commit is contained in:
Maximilian Hils 2019-11-20 17:28:27 +01:00 committed by GitHub
commit 3a7ca3e1e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -369,18 +369,15 @@ def raw_format_table(f):
req = []
cursor = [' ', 'focus']
if f.get('resp_is_replay', False):
cursor[0] = SYMBOL_REPLAY
cursor[1] = 'replay'
if f['marked']:
if cursor[0] == ' ':
cursor[0] = SYMBOL_MARK
cursor[1] = 'mark'
if f['focus']:
cursor[0] = '>'
req.append(fcol(*cursor))
if f.get('resp_is_replay', False) or f.get('req_is_replay', False):
req.append(fcol(SYMBOL_REPLAY, 'replay'))
if f['marked']:
req.append(fcol(SYMBOL_MARK, 'mark'))
if f["two_line"]:
req.append(TruncatedText(f["req_url"], colorize_url(f["req_url"]), 'left'))
pile.append(urwid.Columns(req, dividechars=1))