Skip to content

Restore files from trash dialogs - present () not run ()#2546

Merged
jeremypw merged 5 commits intomainfrom
jeremypw/gtk4prep/FileUtils-cleanup
Jun 14, 2025
Merged

Restore files from trash dialogs - present () not run ()#2546
jeremypw merged 5 commits intomainfrom
jeremypw/gtk4prep/FileUtils-cleanup

Conversation

@jeremypw
Copy link
Contributor

@jeremypw jeremypw commented Mar 10, 2025

Avoid dialog.run () in restore_files_from_trash.
A modal dialog is used, which freezes user input except for the dialog, but without run () this does not stop the function immediately continuing after dialog.present () so it seems we still need to use an async function with yield and callback () for this to function properly in a loop.

@jeremypw jeremypw added this to the 7.2.0 milestone Jun 13, 2025
@jeremypw jeremypw marked this pull request as ready for review June 13, 2025 14:43
@jeremypw jeremypw requested a review from a team June 13, 2025 14:43
@jeremypw jeremypw changed the title jeremypw/gtk4prep/FileUtils-cleanup Restore files from trash dialogs - present () not run () Jun 13, 2025
@jeremypw jeremypw enabled auto-merge (squash) June 14, 2025 14:56
@jeremypw jeremypw merged commit 0e63732 into main Jun 14, 2025
4 checks passed
@jeremypw jeremypw deleted the jeremypw/gtk4prep/FileUtils-cleanup branch June 14, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants