Skip to content
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

Display Key Mappings in Settings #2314

Merged
merged 3 commits into from
Apr 22, 2020

Conversation

traies
Copy link
Member

@traies traies commented Apr 22, 2020

Summary of the Pull Request

  • Single Key and Shortcut mappings are displayed in the KeyboardManager settings key.
  • Keyboard Manager can be enabled and disabled from the Settings page.

References

PR Checklist

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

@traies traies requested a review from a team April 22, 2020 01:25
@traies traies force-pushed the user/udit3333/Apply-remap-on-ui branch from 6a3020f to 4686458 Compare April 22, 2020 01:47
@traies traies requested a review from arjunbalgovind April 22, 2020 01:48
Copy link
Contributor

@arjunbalgovind arjunbalgovind left a comment

Choose a reason for hiding this comment

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

LGTM! Just left a few comments on some clarifications. I also noticed that there are some logo files added which were previously removed in #2186 . Any reason for adding those back in?

Comment on lines +62 to +70
if (SettingsUtils.SettingsExists())
{
generalSettings = SettingsUtils.GetSettings<GeneralSettings>(string.Empty);
}
else
{
generalSettings = new GeneralSettings();
SettingsUtils.SaveSettings(generalSettings.ToJsonString(), string.Empty);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we initializing the general settings here? Shouldn't be done in the view model for the general page? Or is that the new approach that all powertoys are using?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, we should load the GeneralSettings file only once in memory and share it between the different pages.

@arjunbalgovind
Copy link
Contributor

Also we should create an issue to track the input language change does not reflect in SettingsV2 until the control is reloaded. This would probably be a v1 thing or maybe even future, but it's good to keep track of it.

@traies traies merged commit d941b31 into dev/build-features Apr 22, 2020
@traies traies deleted the user/udit3333/Apply-remap-on-ui branch April 24, 2020 16:32
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.

4 participants