Repository navigation
Combine progress states in the tab, taskbar - #10755
Merged
10 commits merged intoAug 10, 2021
Merged
10 commits merged into
10 commits merged into
Conversation
…rogress value correctly
… at once. Not sure I love it.
This comment has been minimized.
This comment has been minimized.
Carlos Zamora (carlos-zamora)
approved these changes
Jul 26, 2021
|
Hello Mike Griese (@zadjii-msft)! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
ghost
deleted the
dev/migrie/b/progress-bugs
branch
August 10, 2021 11:16
| void TerminalTab::_UpdateProgressState() | ||
| { | ||
| if (const auto& activeControl{ GetActiveTerminalControl() }) | ||
| const auto state{ GetCombinedTaskbarState() }; |
There was a problem hiding this comment.
gentle nit: we could compute the "max state" one time and store it, here, because this is the listener for all progress state changes (right?). That would make the call in TerminalPage free (it wouldn't need to min_element the group of winrt objects)
|
🎉 Handy links: |
This pull request was closed.
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.
Summary of the Pull Request
This PR causes the Terminal to combine taskbar states at the tab and window level, according to the MSDN docs for
SetProgressState.This allows the Terminal's taskbar icon to continue showing progress information, even if you're in a pane/tab that doesn't have progress state. This is helpful for cases where the user may be running a build in one tab, and working on something else in another.
References
SetProgressStatePR Checklist
Detailed Description of the Pull Request / Additional comments
This also fixes a related bug where transitioning from the "error" or "warning" state directly to the "indeterminate" state would cause the taskbar icon to get stuck in a bad state.
Validation Steps Performed
progress.cmd