Repository navigation
Add a power action for when a transfer finishes (v0.2.3) - #22
Merged
Merged
Conversation
Right-click a process and pick "When download finishes..." to shut down, sleep or hibernate the PC once its download has gone quiet. The watch only arms after the process has downloaded above a threshold for 10 seconds in a row, so an idle process or a stray burst cannot trigger it. The download counts as finished when the rate then stays below the threshold for a set time. A 60 second countdown with a Cancel button runs before the action, and traffic picking up again cancels it too. The watch is never saved, so it cannot fire on a later run. Marked experimental: a connection outage longer than the quiet time still looks like a finished download. Closes #21
The dialog gains a Watch choice: download, upload, or both. Both waits until the two directions are quiet together, which suits sync and backup clients. The menu entry is now "When transfer finishes...". The banner shows the time left until the countdown starts while the transfer is quiet, in place of the elapsed time. Refs #21
The quiet time is now the whole wait: the action runs when it is up, with no countdown added on top and no separate countdown window. The banner counts the time down, and the app window still comes back for the last minute so Cancel is within reach. A running watch can be edited from the banner or the right-click menu. Changing it keeps its progress unless the watched direction changes. Dropdown rows no longer shift by a pixel when hovered. Refs #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds an experimental "When transfer finishes..." entry to the process right-click menu: shut down, sleep or hibernate the PC once that process's download, upload or both have gone quiet. Also bumps the version to 0.2.3.
How it works
Known limits
src/finish_watch.rs.Also adds a little horizontal padding to the entries of the process right-click menu, and stops dropdown rows shifting by a pixel on hover.
Closes #21