Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Periodically check for and handle pending GTK events while performing long operations. #625

Merged
merged 1 commit into from
Apr 23, 2022
Merged

Periodically check for and handle pending GTK events while performing long operations. #625

merged 1 commit into from
Apr 23, 2022

Conversation

KerfuffleV2
Copy link
Contributor

Please note: I really don't know much about GTK (especially with Rust) so this may or may not be the correct approach.

This change checks for and handles a pending GTK event once every 100 files processed. It may make sense to handle all pending events. The frequency of event checking could obviously be changed quote easily, I don't know what the optimal value is but 100 seemed reasonable.

Closes #624

@KerfuffleV2
Copy link
Contributor Author

Any opinion on this? Maybe this particular pull isn't the correct approach but delaying events for an extended time isn't good and it definitely causes problems when using czkawka on Wayland.

@qarmin
Copy link
Owner
qarmin commented Feb 28, 2022

I think that correct approach is to move deleting to different thread/threads.
I'm leaving this PR open, because I don't know if I will have enough time to implement thread support for move/delete operations until 4.1 version will come, so I treat this like backup solution(not tested yet, but looks that this may works - I'm not GTK expert too).

@qarmin qarmin merged commit c48b355 into qarmin:master Apr 23, 2022
@qarmin
Copy link
Owner
qarmin commented Apr 23, 2022

For now is OK, but solution with moving computation to thread will fix also #456
Thanks!

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.

Linux/Wayland: The czkawka-gui can lose connection to the compositor during long operations
2 participants