Added IO ui to stop move or copy, enhanced favorites plugin
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user