[8.50b1] Background copy starts when click on Foreground btn

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
kzaabox
Junior Member
Junior Member
Posts: 26
Joined: 2011-09-21, 12:37 UTC
Location: Hungary

[8.50b1] Background copy starts when click on Foreground btn

Post by *kzaabox »

I'm using the new 8.50 beta1 version of TC (on Windows 8 x86-64).

I tried the following:
- Start a copy operation, send it to background and pause it.
- Start an other copy operation, leave it foreground.

When I click on the "foreground" button on the window in the background the operation in this window starts.
It happens also when the foreground operation is paused too.

Additional info: When the foreground operation has ended (or cancelled) the background operation could not be switched back to foreground. When you press the "Foreground" button the operation continues in the background.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately switching between background and foreground is only possible while thethread isn't paused. It's initiated from within the copy thread, otherwise it wouldn't know about the new window to which it needs to send its notifications.
Author of Total Commander
https://www.ghisler.com
kzaabox
Junior Member
Junior Member
Posts: 26
Joined: 2011-09-21, 12:37 UTC
Location: Hungary

Post by *kzaabox »

ghisler(Author) wrote:Unfortunately switching between background and foreground is only possible while thethread isn't paused. It's initiated from within the copy thread, otherwise it wouldn't know about the new window to which it needs to send its notifications.
I understand it. But what if you use a variable to store the the state of the current operation (started/paused) and after switching between foreground and background the new status would be set according to the value of that variable.
Of course the operation would start immediately after switching but it would be paused if necessary.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have thought about that too, but it would still continue for a moment. Is this really much better?
Author of Total Commander
https://www.ghisler.com
kzaabox
Junior Member
Junior Member
Posts: 26
Joined: 2011-09-21, 12:37 UTC
Location: Hungary

Post by *kzaabox »

It's a good question. I think it would be logical if the status of the operation would remain after switching between modal and non-modal windows but this is only my opinion.


Anyway there is something else as I mentioned in my other topic too.

You have two copy operations.
One in the foreground and one in the background. The background operation is paused.

When you click on "Foreground" button on the window in the background the operation continues instead of doing nothing (since there is an other operation running in the foreground).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is indeed a known bug which will be fixed in beta 2 (in fact, I have already fixed it here).
Author of Total Commander
https://www.ghisler.com
Post Reply