Hello!
I know that I posted about this, and that I've seen someone else too post about it. But I couldn't find the topics.
So here goes again. What would it take to get this working in my FS plugins? Is it supported by TC? Does it need to be? Will it ever be?
What I want is twofold: the ability to click "background" on a transfer that I've already started, and the ability to press F2 when copying from or too an FS plugin.
Background transfer with FS plugins
Moderators: Hacker, petermad, Stefan2, white
Background transfer with FS plugins
Best regards,
Christian Tiberg
Christian Tiberg
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, it's currently not supported because many plugins (including some of my own) are not thread-safe and would crash when invoked multiple times.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Such a check would be easy to add, but the "move to background" would only work if the file transfer function would start in a background thread from the beginning (which is done already for the copy function). Such an addition wouldn't be so easy to add...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Just make it mandatory that all plubins that export the FsIsThreadSafe function to always start transfers that way, in a separate thread. Then it would be up to TC to handle the rest - the plugin is already doing everything in the background, but TC may display it in the foreground if it so chooses.
A little more work, yes, but oh so much more useful it would be for longer-running operations
A little more work, yes, but oh so much more useful it would be for longer-running operations

Best regards,
Christian Tiberg
Christian Tiberg
-
- Power Member
- Posts: 556
- Joined: 2006-04-01, 00:11 UTC