You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I wanted to discard over a thousand files, I minimized the software because it was taking too long. However, when I reopened it after some time, I found that it still hadn't finished executing.
Exactly when I minimized the software, the discard process paused until I reopened it.
@steveward is this issue and #7155 really related? If I understand correctly #7155 is about discarding changes being slow. This issue is about discarding changes PAUSE when Github Desktop is in background. It does not do anything at all when it is not visible on the screen, only when I let it sit idling on the foreground (focus or not) does it begin to continue discarding changes. if it is just slow then the number of files it deletes should still be scale with time as if it was running on foreground for the entire time, however, to me it just stuck there while in background (not visible on the screen).
issue 7155 is actually outdated, the moveItemToTrash method is already asynchronous in the current source code, but the executor is still designed for blocking api's, there is no concurrent execution, leading to inefficiencies in moving files to the recycle bin.
Moreover, there is a bug in this executor that causes it to pause in the background.
Activity
steveward commentedon May 3, 2024
Thanks for the report @821938089. I'm going to add this to #7155 where we are tracking this issue.
821938089 commentedon May 10, 2024
Related issue electron/electron#9567
Mancitiss commentedon Jul 25, 2024
@steveward is this issue and #7155 really related? If I understand correctly #7155 is about discarding changes being slow. This issue is about discarding changes PAUSE when Github Desktop is in background. It does not do anything at all when it is not visible on the screen, only when I let it sit idling on the foreground (focus or not) does it begin to continue discarding changes. if it is just slow then the number of files it deletes should still be scale with time as if it was running on foreground for the entire time, however, to me it just stuck there while in background (not visible on the screen).
821938089 commentedon Jul 25, 2024
issue 7155 is actually outdated, the moveItemToTrash method is already asynchronous in the current source code, but the executor is still designed for blocking api's, there is no concurrent execution, leading to inefficiencies in moving files to the recycle bin.
Moreover, there is a bug in this executor that causes it to pause in the background.