From 6767fcff0770fddae2dea3d9a9d0241d74fcfe41 Mon Sep 17 00:00:00 2001 From: Brian Engert Date: Mon, 12 Feb 2024 08:38:39 -0600 Subject: [PATCH] fix: Permanetly Delete in a new thread to not block ui Clicking Permanetly Delete can take some time if you delete more then one show. running that task in a new thread prevents it from blocking ui updates. --- src/com/tivo/kmttg/gui/remote/deleted.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/com/tivo/kmttg/gui/remote/deleted.java b/src/com/tivo/kmttg/gui/remote/deleted.java index 50bd44db..de15af88 100755 --- a/src/com/tivo/kmttg/gui/remote/deleted.java +++ b/src/com/tivo/kmttg/gui/remote/deleted.java @@ -113,7 +113,13 @@ public void handle(ActionEvent e) { public void handle(ActionEvent e) { String tivoName = tivo.getValue(); if (tivoName != null && tivoName.length() > 0) { - tab.permanentlyDelete(tivoName); + Task task = new Task() { + @Override public Void call() { + tab.permanentlyDelete(tivoName); + return null; + } + }; + new Thread(task).start(); } } });