Skip to content

Conversation

shuaiyuanxx
Copy link
Contributor

@shuaiyuanxx shuaiyuanxx commented Sep 2, 2025

Summary of the Pull Request

PR Checklist

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

@shuaiyuanxx shuaiyuanxx requested a review from Copilot September 2, 2025 02:56
Copy link
Contributor

@Copilot 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

This PR fixes a keyvisual issue for PowerToys Run by implementing a mechanism to prevent unnecessary hotkey conflict detection when settings are updated without hotkey changes.

  • Adds a HotkeyChanged property to track when hotkeys are actually modified
  • Updates the settings dispatch logic to only trigger hotkey updates when necessary
  • Prevents incorrect hotkey conflict detection during non-hotkey setting changes

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
PowerLauncherViewModel.cs Adds hotkey change tracking and sets flag when OpenPowerLauncher hotkey is modified
PowerLauncherProperties.cs Introduces HotkeyChanged property to the settings model
settings_window.cpp Updates module configuration dispatch to conditionally trigger hotkey updates based on the flag
Comments suppressed due to low confidence (1)

src/settings-ui/Settings.UI/ViewModels/PowerLauncherViewModel.cs:1

  • There's a character encoding issue in the comment. 'PowerLauncher's' contains a non-standard apostrophe character (') that should be replaced with a standard apostrophe (').
// Copyright (c) Microsoft Corporation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@shuaiyuanxx shuaiyuanxx self-assigned this Sep 2, 2025
@yeelam-gordon
Copy link
Contributor

@shuaiyuanxx, do we still need this? if we git rid of detection of run v1 first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conflict turn red when I turn off PowerToys run with other setting changed.
2 participants