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

Show Blocking dialog While Sending File. Lay Groundwork For Progress Bar #46

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

andycb
Copy link
Owner

@andycb andycb commented Feb 12, 2021

Addresses #25

This change adds a blocking dialog when a large file is being transferred to prevent the user from clicking on the app's navigation buttons.

The issue specifically asks for a progress bar to be added, this change adds the necessary reporting to add this, however as the file transfer currently takes place in the Electron renderer thread, there are issues where Angular is blocked from processing the updates util the transfer is finished. This should be resolved going forward by either moving the printer SDK into the Electron main process or using a web worker for the transfer.

Both of these options require significant refactoring, so for this release (1.2) I'm opting to fix only the top level bug of sometimes the progress ring is not shown and sometimes is possible to interrupt the transfer by clicking away. I'll revisit the progress bar in a later release.

image

@andycb andycb marked this pull request as ready for review February 12, 2021 16:28
@andycb andycb added this to the V1.2 milestone Feb 12, 2021
@andycb andycb linked an issue Feb 12, 2021 that may be closed by this pull request
@andycb andycb merged commit 37cb1a6 into master Feb 12, 2021
@andycb andycb deleted the fileSendBlocking branch February 13, 2021 22:50
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.

Progress bar while sending file to printer
1 participant