Added IO ui to stop move or copy, enhanced favorites plugin

This commit is contained in:
2022-11-25 23:12:43 -06:00
parent 4f9fe37613
commit f51a860de5
6 changed files with 139 additions and 51 deletions

View File

@@ -1,5 +1,5 @@
# Python imports
import os, threading, subprocess, time, inspect
import os, subprocess, time, inspect
# Lib imports
import gi
@@ -10,19 +10,6 @@ from gi.repository import Gtk
from plugins.plugin_base import PluginBase
# NOTE: Threads WILL NOT die with parent's destruction.
def threaded(fn):
def wrapper(*args, **kwargs):
threading.Thread(target=fn, args=args, kwargs=kwargs, daemon=False).start()
return wrapper
# NOTE: Threads WILL die with parent's destruction.
def daemon_threaded(fn):
def wrapper(*args, **kwargs):
threading.Thread(target=fn, args=args, kwargs=kwargs, daemon=True).start()
return wrapper
class Plugin(PluginBase):