* fixes "Application not responding" warning message on GNOME
---
caerbannog/passlist.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/caerbannog/passlist.py b/caerbannog/passlist.py
index 651960f..a908366 100644
--- a/caerbannog/passlist.py
+++ b/caerbannog/passlist.py
@@ -5,6 +5,7 @@ import fuzzyfinder
import gc
import gi
import importlib
+import threading
import os
from .logger import Logger
gi.require_version('Gdk', '3.0')
@@ -172,7 +173,7 @@ class PassList(Gtk.ListBox):
# order of this conditional is important, since PassItem is derived
# from PassSection
if isinstance(node, PassItem):
- self._copy_pass(node)
+ threading.Thread(target=self._copy_pass, args=(node,)).start()
elif isinstance(node, PassSection):
# populate listbox with selected subsection
self._tree_cur = node
--
2.30.1
Thanks, but I think I'm going to go with the patch I posted yesterday, since it
limits what runs in a separate thread (even if it's not as succinct as your
patch here). What do you think?