Skip to content

Fix progress bar dialog for trash, restore and empty trash file operations - #2827

Open
vjr wants to merge 82 commits into
mainfrom
vishal/trash-progress
Open

vjr wants to merge 82 commits into
mainfrom
vishal/trash-progress

Conversation

@vjr

@vjr vjr commented Sep 4, 2026

Copy link
Copy Markdown
Member

Fixes #137

  • Sync files for trash, restore from trash and empty trash.
  • Trash files progress dialog working as before.
  • Restore from trash progress dialog now shows up.

Very embarrassingly rough work.
Sync likely working for trash, restore from trash and empty trash.
Trash files progress dialog working as before.
Restore from trash progress dialog still does not show up.
@vjr vjr self-assigned this Sep 4, 2026
@vjr
vjr requested review from a team and jeremypw September 6, 2026 12:00
@vjr

vjr commented Sep 6, 2026

Copy link
Copy Markdown
Member Author

@jeremypw there's some improvement towards fixing the issue.

With this branch on occasion the progress bar dialogs do not show up and I get the process-not-responding busy dialog "wait or kill" especially if I perform multiple steps in the same app lifetime - meaning if I close and restart the app for each step (trash files, restore files, empty trash) it seems to work.

You mentioned an "undo manager" here -> #137 (comment) which I'm not familiar with nor any other subsystems that might be slowing down/interacting when there are large number of files - I've been testing with 10,000 files of 100k each.

I've disabled options such as local/remote thumbnailing, file previews etc.

One other issue (existing on main branch too) I see is there is no confirmation dialog popup when you empty trash with large number of files (in my test with 10,000 files) but if I empty with just a few it shows up.

@jeremypw

jeremypw commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

@vjr Thanks for your continued work on this! I'll have a look at it tomorrow.

@jeremypw

jeremypw commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

@vjr On reflection, it would be better to wait for your existing sync PR to be merged before looking at this so we can focus on one thing and fix any conflicts then.

I am also touching some of the same code in my port to Vala of delete/trash operations. I may be able to fix the progress in Vala.

@vjr

vjr commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

@vjr On reflection, it would be better to wait for your existing sync PR to be merged before looking at this so we can focus on one thing and fix any conflicts then.

I am also touching some of the same code in my port to Vala of delete/trash operations. I may be able to fix the progress in Vala.

@jeremypw yep best to wait until your PR(s) are merged then i can revisit mine one at a time, see #2826 (comment)

@vjr

vjr commented Sep 20, 2026

Copy link
Copy Markdown
Member Author

@jeremypw this branch should be in good shape now, at least the empty-trash part, please try it when you can, i am unable to get the progress dialog to show up for trash or restore try as i might, even though i did try preventing atomic file moves to/from trash. and i could have sworn it was working earlier although it was on a different PC and i may have a different number/size collection of files i was testing.

Base automatically changed from vishal/transfer-progress-redux to main September 22, 2026 11:14
@vjr

vjr commented Sep 23, 2026

Copy link
Copy Markdown
Member Author

@jeremypw thanks for merging the other sync PR which leaves this one for review whenever it's a good time.

@jeremypw

Copy link
Copy Markdown
Contributor

@vjr I'd like to hold on this one while the port of the rest of the C code involved in trash and delete to Vala is ongoing if that's OK as they touch the same code, at least as far as trashing/deleting goes. Restoring from trash uses CopyMoveJob I think so it may be worth keeping that part. It will probably be easier to incorporate any changes required for trash/delete directly into the Vala PR. Are you able to propose a PR for that?

I am just finishing off the Vala PR - need to check that all error conditions are still handled.

@vjr

vjr commented Sep 23, 2026

Copy link
Copy Markdown
Member Author

Are you able to propose a PR for that?

@jeremypw oh yes absolutely, take your time, i can just rework this PR or start a new one once your vala port get's merged, i didn't mean to rush :-)

@jeremypw

Copy link
Copy Markdown
Contributor

@vjr Just tried to pull this PR into mine and there are a lot of major conflicts so probably best to rethink once mine is done.

@vjr

vjr commented Sep 23, 2026

Copy link
Copy Markdown
Member Author

@vjr Just tried to pull this PR into mine and there are a lot of major conflicts so probably best to rethink once mine is done.

lol @jeremypw yes i suspected as much, no worries, i'll redo this one when it's time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No progress indication when trashing many small files after a restoring a large number of files

2 participants