-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Add a information popup about default terminals #11397
Conversation
85f5639
to
752ab6c
Compare
} | ||
|
||
dismissedMessages.Append(message); | ||
ApplicationState::SharedInstance().DismissedMessages(dismissedMessages); | ||
applicationState.DismissedMessages(std::move(messages)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI This fixes a pretty ugly programming error: ApplicationState
is supposed to be a thread-safe class.
Calling Append
on the returned vector however isn't thread-safe, so I rewrote this.
<data name="SetAsDefaultInfoBar.Message" xml:space="preserve"> | ||
<value>Windows Terminal can be set as your default terminal application in your settings.</value> | ||
</data> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Offline discussion w/ @cinnamon-msft ) "Looks good"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't love the repeated "your". "the settings" is better, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it to
Windows Terminal can be set as the default terminal application in your settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(storing the point that I've reviewed so far)
@@ -287,6 +287,11 @@ namespace winrt::TerminalApp::implementation | |||
_defaultPointerCursor = CoreWindow::GetForCurrentThread().PointerCursor(); | |||
} | |||
CATCH_LOG(); | |||
|
|||
if (CascadiaSettings::IsDefaultTerminalAvailable()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to add a check here that only makes it show up if conhost is the current default:
if (CascadiaSettings::IsDefaultTerminalAvailable() && !_settings.CurrentDefaultTerminal())
But unfortunately the Name()
returned by CurrentDefaultTerminal()
is always a localized name of the application including conhost. So I'd have to add some new API functions to make this work.
But before I do that I wanted to ask if anyone else would like to see that...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will probably want to hide this infobar if we're not running packaged, also. which is silly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we just change IsDefaultTerminalAvailable
to detect unpackaged activation then?
Mind sharing a screenshot? 😄 |
@DHowett Is it fine as just a regular comment here? |
Love it! In fact, I prefer screenshots to be outside of the commit body. Github does not render commit bodies in markdown, so... they look messy and the user has to dig out a URL and open it themselves just to see it. |
As a big trick, you could expose the |
@DHowett I've updated the PR with your suggestions. Can you check the latest commit again if you get a chance? |
Hello @DHowett! 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 (
|
This commit adds a simple information popup about default terminals, guiding first-time Windows 11 users into changing the default terminal. * Info bar pops up on Windows 11 ✔️ * Info bar can be dismissed persistently ✔️ (cherry picked from commit 2b1468e)
🎉 Handy links: |
🎉 Handy links: |
This commit adds a simple information popup about default terminals,
guiding first-time Windows 11 users into changing the default terminal.
Validation Steps Performed