mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
Spelling - remaining code changes (#3963)
* spelling: commit * spelling: exclusion * spelling: initial * spelling: occurred * spelling: programmatically * spelling: should * spelling: successfully * spelling: committed * spelling: directly
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"ID":"B4D3B69656E14D44865C8D818EAE47C4",
|
||||
"ActionKeyword":"*",
|
||||
"Name":"Folder",
|
||||
"Description":"Open favorite folder from wox directorily",
|
||||
"Description":"Open favorite folder from wox directly",
|
||||
"Author":"qianlifeng",
|
||||
"Version":"1.0.0",
|
||||
"Language":"csharp",
|
||||
|
||||
@@ -109,7 +109,7 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
else
|
||||
{
|
||||
ProgramLogger.LogException($"|UWP|XmlNamespaces|{path}" +
|
||||
$"|Error occured while trying to get the XML from {path}", new ArgumentNullException());
|
||||
$"|Error occurred while trying to get the XML from {path}", new ArgumentNullException());
|
||||
|
||||
return new string[] { };
|
||||
}
|
||||
@@ -156,7 +156,7 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
#if !DEBUG
|
||||
catch (Exception e)
|
||||
{
|
||||
ProgramLogger.LogException($"|UWP|All|{p.InstalledLocation}|An unexpected error occured and "
|
||||
ProgramLogger.LogException($"|UWP|All|{p.InstalledLocation}|An unexpected error occurred and "
|
||||
+ $"unable to convert Package to UWP for {p.Id.FullName}", e);
|
||||
return new Application[] { };
|
||||
}
|
||||
@@ -204,7 +204,7 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
ProgramLogger.LogException("UWP" ,"CurrentUserPackages", $"id","An unexpected error occured and "
|
||||
ProgramLogger.LogException("UWP" ,"CurrentUserPackages", $"id","An unexpected error occurred and "
|
||||
+ $"unable to verify if package is valid", e);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
|
||||
/// Makes sure that a window is excluded from the live preview
|
||||
/// </summary>
|
||||
/// <param name="hwnd">handle to the window to exclude</param>
|
||||
public static void SetWindowExlusionFromLivePreview(IntPtr hwnd)
|
||||
public static void SetWindowExclusionFromLivePreview(IntPtr hwnd)
|
||||
{
|
||||
int renderPolicy = (int)InteropAndHelpers.DwmNCRenderingPolicy.Enabled;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace PowerLauncher
|
||||
private readonly Storyboard _progressBarStoryboard = new Storyboard();
|
||||
private Settings _settings;
|
||||
private MainViewModel _viewModel;
|
||||
private bool _isTextSetProgramatically;
|
||||
private bool _isTextSetProgrammatically;
|
||||
bool _deletePressed = false;
|
||||
Timer _firstDeleteTimer = new Timer();
|
||||
|
||||
@@ -128,7 +128,7 @@ namespace PowerLauncher
|
||||
}
|
||||
else if (e.PropertyName == nameof(MainViewModel.SystemQueryText))
|
||||
{
|
||||
this._isTextSetProgramatically = true;
|
||||
this._isTextSetProgrammatically = true;
|
||||
SearchBox.QueryTextBox.Text = _viewModel.SystemQueryText;
|
||||
}
|
||||
}
|
||||
@@ -290,11 +290,11 @@ namespace PowerLauncher
|
||||
}
|
||||
private void QueryTextBox_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (_isTextSetProgramatically)
|
||||
if (_isTextSetProgrammatically)
|
||||
{
|
||||
var textBox = ((TextBox)sender);
|
||||
textBox.SelectionStart = textBox.Text.Length;
|
||||
_isTextSetProgramatically = false;
|
||||
_isTextSetProgrammatically = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -341,4 +341,4 @@ namespace PowerLauncher
|
||||
Hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user