-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Fix various issues with useBackgroundImageForWindow #13090
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
Conversation
| if (imageSource == nullptr || | ||
| imageSource.UriSource() == nullptr || | ||
| imageSource.UriSource().RawUri() != imageUri.RawUri()) | ||
| !imageSource.UriSource().Equals(imageUri)) |
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.
RawUri() returns the string the URI was constructed with, not the normalized variant.
This can result in imageSource.UriSource().RawUri() being file:///C:/..., while imageUri.RawUri() is C:\\....
| void TerminalPage::_SetBackgroundImage(const winrt::Microsoft::Terminal::Settings::Model::IAppearanceConfig& newAppearance) | ||
| { | ||
| if (newAppearance.BackgroundImagePath().empty()) | ||
| const auto path = newAppearance.ExpandedBackgroundImagePath(); |
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.
ugh thanks
|
@msftbot merge this in 5 minutes |
|
Hello @carlos-zamora! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
Fixes the following issues: * `desktopWallpaper` not working * switching tabs/panes causes the background to flicker * settings preview having a transparent background ## PR Checklist * [x] Closes #13002 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed Tested the 3 cases above. ✅ (cherry picked from commit 0630b18) Service-Card-Id: 81868221 Service-Version: 1.14
Fixes the following issues:
desktopWallpapernot workingPR Checklist
Validation Steps Performed
Tested the 3 cases above. ✅