-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Fix desktopWallpaper background image casing #8206
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
| static constexpr std::string_view BellStyleKey{ "bellStyle" }; | ||
|
|
||
| static const winrt::hstring DesktopWallpaperEnum{ L"DesktopWallpaper" }; | ||
| static const winrt::hstring DesktopWallpaperEnum{ L"desktopWallpaper" }; |
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.
AGH
@carlos-zamora can you help make this not a statically-constructed hstring
| static constexpr std::string_view BellStyleKey{ "bellStyle" }; | ||
|
|
||
| static const winrt::hstring DesktopWallpaperEnum{ L"DesktopWallpaper" }; | ||
| static const winrt::hstring DesktopWallpaperEnum{ L"desktopWallpaper" }; |
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.
| static const winrt::hstring DesktopWallpaperEnum{ L"desktopWallpaper" }; | |
| static const std::string_view DesktopWallpaperEnum{ L"desktopWallpaper" }; |
I think that's all you might have to do since to_hstring is called on this when it's needed below.
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.
uh this will definitely not work lol
why is it even a wide string
why did we put L on it
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.
Oh yeah, remove the L after making it a string_view
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.
Alright I think I fixed it
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.
Ok. I'm a dummy. Make it a std::wstring_view (and add the 'L' back in).
Since we're specifically comparing this to an hstring and hstrings are wide, keep this as a wstring and remove to to_hstring call when it's used.
Mind fixing it? It'll be a quick fix.
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.
Okay how about now?
| { | ||
| "enum": [ | ||
| "desktopWallpaper" | ||
| ] | ||
| } |
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.
Just double checking, you don't need "type": "string" here? It looks like "backgroundImageAlignment" below has it. Either way, thank you!
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.
yeah i sure hope this works lol
zadjii-msft
left a comment
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.
k
|
@msftbot merge this in 3 minutes |
|
Hello @DHowett! 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". |
DesktopWallpapertodesktopWallpaperforbackgroundImageto match our other settings
desktopWallpaperto json schema