From 8b96badd5938a497eb9a6385bbcb89e4677a959e Mon Sep 17 00:00:00 2001 From: aristocratos Date: Thu, 6 Aug 2020 18:06:43 +0200 Subject: [PATCH] Changed info box to restore last selection on close --- bpytop.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bpytop.py b/bpytop.py index 692ea55..b85f764 100755 --- a/bpytop.py +++ b/bpytop.py @@ -4040,6 +4040,7 @@ def process_keys(): ProcCollector.detailed_pid = ProcBox.selected_pid ProcBox.resized = True elif ProcCollector.detailed: + ProcBox.selected = ProcBox.last_selection ProcBox.last_selection = 0 ProcCollector.detailed = False ProcCollector.detailed_pid = None