Skip to content

Conversation

@Jaylyn-Barbee
Copy link
Contributor

@Jaylyn-Barbee Jaylyn-Barbee commented Nov 4, 2025

Summary of the Pull Request

This PR introduces new UI to allow the users to manually enter their lat/long.

PR Checklist

@Jaylyn-Barbee Jaylyn-Barbee changed the title Feature/lightswitch manual location [Light Switch] Enter latitude and longitude manually in Sunrise to sunset mode Nov 4, 2025
@Jaylyn-Barbee Jaylyn-Barbee marked this pull request as ready for review November 4, 2025 17:48
@Jaylyn-Barbee
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niels9001 niels9001 requested a review from Copilot November 5, 2025 06:22

This comment was marked as outdated.

@niels9001 niels9001 added this to the PowerToys 0.96 milestone Nov 5, 2025
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Jaylyn-Barbee Jaylyn-Barbee added the Don't merge - Hold for release Hold off on merging this PR, even if it's approved. label Nov 5, 2025
@github-actions

This comment has been minimized.

@Jaylyn-Barbee Jaylyn-Barbee requested a review from Copilot November 5, 2025 19:25
@github-actions

This comment has been minimized.

This comment was marked as outdated.

@Jaylyn-Barbee Jaylyn-Barbee removed the Don't merge - Hold for release Hold off on merging this PR, even if it's approved. label Nov 5, 2025
Copy link
Contributor

@yeelam-gordon yeelam-gordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review from Copilot

@Jaylyn-Barbee Jaylyn-Barbee requested a review from Copilot November 7, 2025 17:03

This comment was marked as outdated.

@Jaylyn-Barbee Jaylyn-Barbee requested a review from Copilot November 7, 2025 17:53
Copy link
Contributor

Copilot AI left a 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.

{
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);

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's what we use as the defaults and it just prevents updates from happening when they aren't supposed to. Luckily, I don't think anyone lives here
image

Copy link
Collaborator

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?

@Jaylyn-Barbee
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@khmyznikov khmyznikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-approve

@Jaylyn-Barbee Jaylyn-Barbee merged commit 29688ce into main Nov 11, 2025
14 checks passed
vanzue pushed a commit that referenced this pull request Nov 13, 2025
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Light Switch: Setting location manually without maps

6 participants