Enable re-reading and sending changed files without input dialog #51
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enable re-reading and sending changed files without the need for additional input dialog.
A very common work-flow is to edit a file, upload it, test the changes, make further changes, re-upload etc. Currently you must select the file from the file chooser dialog each time you wish to upload it. This PR makes it possible to simply hit
Send to Device
and, if the file is changed, have it re-read and sent again, saving considerable time.Status messages gives feedback on whether the file was re-read and resent (
[Changed]
attached to file info, or[Unchanged]
in status area).This tested fine for me with Chrome. In Safari, re-reading an already-selected file doesn't work (a file not found error is thrown). If such an error is encountered, the status message is updated to say
[Error: Must Choose File Again]
. Given that currently Webrepl doesn't indicate that it resends the same outdated file data on subsequent presses ofSend to Device
, this is an improvement even for Safari users.