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

Move progress bar widget out of kartapi and into dockwidget #113

Merged

Conversation

hamishcampbell
Copy link
Member

Repository.clone has a UI dependancy – it attempts to create a progress bar for reporting the progress of the clone operation. There are no other UI dependancies in kartapi and this prevents the re-use of the code in other non-GUI components.

This change moves the progress bar into the calling KartDockWidget GUI component. An output_handler arg is provided in Repository.clone so the caller can attached it's own handler. The existing progress bar code is copied over.

This keeps the UI concerns in the GUI component and removes the UI
dependancy in kartapi. An output_handler hook is added to
Repository.clone to enable progress reporting.
@hamishcampbell hamishcampbell force-pushed the move-clone-progressbar branch from 275a53b to 781e4ba Compare August 14, 2024 05:33
@hamishcampbell hamishcampbell merged commit b0fa22c into koordinates:main Aug 14, 2024
3 checks passed
@hamishcampbell hamishcampbell deleted the move-clone-progressbar branch August 14, 2024 05:43
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.

1 participant