From fd64a33c80364b2f917e189cb781dc0ec0874079 Mon Sep 17 00:00:00 2001 From: piotr Date: Tue, 14 Feb 2023 16:08:02 +0100 Subject: [PATCH] refresh after killing --- nwg_panel/processes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nwg_panel/processes.py b/nwg_panel/processes.py index e3e2f9c..e45ed31 100644 --- a/nwg_panel/processes.py +++ b/nwg_panel/processes.py @@ -24,6 +24,7 @@ def handle_keyboard(win, event): def terminate(btn, pid): print("Killing {}".format(pid)) os.kill(pid, 2) + list_processes(None) def list_processes(widget): @@ -118,6 +119,7 @@ def list_processes(widget): def on_background_cb(check_button): common_settings["processes-background-only"] = check_button.get_active() + # GLib.timeout_add(100, list_processes, None) list_processes(None)