-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[Light Switch] Enter latitude and longitude manually in Sunrise to sunset mode #43276
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
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
src/settings-ui/Settings.UI/SettingsXAML/Views/LightSwitchPage.xaml.cs
Outdated
Show resolved
Hide resolved
src/settings-ui/Settings.UI/SettingsXAML/Views/LightSwitchPage.xaml.cs
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
yeelam-gordon
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.
Review from Copilot
src/settings-ui/Settings.UI/SettingsXAML/Views/LightSwitchPage.xaml.cs
Outdated
Show resolved
Hide resolved
src/settings-ui/Settings.UI/SettingsXAML/Views/LightSwitchPage.xaml
Outdated
Show resolved
Hide resolved
src/settings-ui/Settings.UI/SettingsXAML/Views/LightSwitchPage.xaml
Outdated
Show resolved
Hide resolved
src/settings-ui/Settings.UI/SettingsXAML/Views/LightSwitchPage.xaml
Outdated
Show resolved
Hide resolved
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.
Pull Request Overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 12 comments.
src/modules/LightSwitch/LightSwitchService/LightSwitchService.cpp
Outdated
Show resolved
Hide resolved
src/settings-ui/Settings.UI/SettingsXAML/Views/LightSwitchPage.xaml
Outdated
Show resolved
Hide resolved
src/modules/LightSwitch/LightSwitchService/LightSwitchService.cpp
Outdated
Show resolved
Hide resolved
src/settings-ui/Settings.UI/SettingsXAML/Views/LightSwitchPage.xaml.cs
Outdated
Show resolved
Hide resolved
src/modules/LightSwitch/LightSwitchService/LightSwitchStateManager.cpp
Outdated
Show resolved
Hide resolved
…com/microsoft/PowerToys into feature/lightswitch-manual-location
| { | ||
| double latVal = std::stod(lat); | ||
| double lonVal = std::stod(lon); | ||
| return !(latVal == 0 && lonVal == 0) && (latVal >= -90.0 && latVal <= 90.0) && (lonVal >= -180.0 && lonVal <= 180.0); |
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.
why can't latitude and longitude both be equal to zero? not sure this is a problem but struck me
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.
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.
Can't we just have null as defaults?
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
khmyznikov
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.
re-approve
…nset mode (#43276) <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request This PR introduces new UI to allow the users to manually enter their lat/long. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist - [x] Closes: #42429 - [x] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [x] **Localization:** All end-user-facing strings can be localized - [x] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #[5979](https://github.com/MicrosoftDocs/windows-dev-docs-pr/pull/5979) --------- Co-authored-by: Niels Laute <[email protected]>

Summary of the Pull Request
This PR introduces new UI to allow the users to manually enter their lat/long.
PR Checklist