diff --git a/src/modules/example_powertoy/dllmain.cpp b/src/modules/example_powertoy/dllmain.cpp
index 18637e5fdb..a622c344b1 100644
--- a/src/modules/example_powertoy/dllmain.cpp
+++ b/src/modules/example_powertoy/dllmain.cpp
@@ -64,7 +64,7 @@ public:
}
// Return array of the names of all events that this powertoy listens for, with
- // nullptr as the last element of the array. Nullptr can also be retured for empty
+ // nullptr as the last element of the array. Nullptr can also be returned for empty
// list.
// Right now there is only lowlevel keyboard hook event
virtual const wchar_t** get_events() override
@@ -122,7 +122,7 @@ public:
);
// Add a custom action property. When using this settings type, the "PowertoyModuleIface::call_custom_action()"
- // method should be overriden as well.
+ // method should be overridden as well.
settings.add_custom_action(
L"test_custom_action", // action name.
L"This is what a CustomAction property looks like", // label above the field.
diff --git a/src/modules/fancyzones/README.md b/src/modules/fancyzones/README.md
index 9789948939..497dae4306 100644
--- a/src/modules/fancyzones/README.md
+++ b/src/modules/fancyzones/README.md
@@ -35,7 +35,7 @@ If two zones are adjacent, a window can be snapped to the sum of their area (rou
| Shortcut | Action |
| ----------- | ----------- |
| Win + ` | Launches editor (this shortcut is editable in the settings dialog) |
-| Win+Left/Right Arrow | Move focused window between zones (only if `Override Windows Snap hotkeys` setting is turned on, in that case only the `Win+Left Arrow` and `Win+Right Arrow` are overriden, while the `Win+Up Arrow` and `Win+Down Arrow` keep working as usual) |
+| Win+Left/Right Arrow | Move focused window between zones (only if `Override Windows Snap hotkeys` setting is turned on, in that case only the `Win+Left Arrow` and `Win+Right Arrow` are overridden, while the `Win+Up Arrow` and `Win+Down Arrow` keep working as usual) |
FancyZones doesn't override the Windows 10 `Win+Shift+Arrow` to quickly move a window to an adjacent monitor.
@@ -56,7 +56,7 @@ FancyZones doesn't override the Windows 10 `Win+Shift+Arrow` to quickly move a w
| Zone Inactive color (Default #F5FCFF) | The color that zones become when they are not an active drop during a window drag |
| Zone border color (Default #FFFFFF) | The color of the border of active and inactive zones |
| Zone opacity (%) (Default 50%) | The percentage of opacity of active and inactive zones |
-| Exclude applications from snapping to zones | Add the applications name, or part of the name, one per line (e.g., adding `Notepa` will match both `Notepad.exe` and `Notepad++.exe`, to match only `Notepad.exe` add the `.exe` extension) |
+| Exclude applications from snapping to zones | Add the applications name, or part of the name, one per line (e.g., adding `Notepad` will match both `Notepad.exe` and `Notepad++.exe`, to match only `Notepad.exe` add the `.exe` extension) |

diff --git a/src/modules/fancyzones/dll/dllmain.cpp b/src/modules/fancyzones/dll/dllmain.cpp
index 054e2535b0..d9518e9ab3 100644
--- a/src/modules/fancyzones/dll/dllmain.cpp
+++ b/src/modules/fancyzones/dll/dllmain.cpp
@@ -43,7 +43,7 @@ public:
}
// Return array of the names of all events that this powertoy listens for, with
- // nullptr as the last element of the array. Nullptr can also be retured for empty list.
+ // nullptr as the last element of the array. Nullptr can also be returned for empty list.
virtual PCWSTR* get_events() override
{
return nullptr;
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/CanvasZone.xaml.cs b/src/modules/fancyzones/editor/FancyZonesEditor/CanvasZone.xaml.cs
index 085bb79b46..0e5935808d 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/CanvasZone.xaml.cs
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/CanvasZone.xaml.cs
@@ -12,7 +12,7 @@ using FancyZonesEditor.Models;
namespace FancyZonesEditor
{
///
- /// Once you've "Committ"ed the starter grid, then the Zones within the grid come to life for you to be able to further subdivide them
+ /// Once you've "Commit"ted the starter grid, then the Zones within the grid come to life for you to be able to further subdivide them
/// using splitters
///
public partial class CanvasZone : UserControl
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/GridZone.xaml.cs b/src/modules/fancyzones/editor/FancyZonesEditor/GridZone.xaml.cs
index 3cabac7190..6085702013 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/GridZone.xaml.cs
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/GridZone.xaml.cs
@@ -12,7 +12,7 @@ using System.Windows.Shapes;
namespace FancyZonesEditor
{
///
- /// Once you've "Committ"ed the starter grid, then the Zones within the grid come to life for you to be able to further subdivide them
+ /// Once you've "Commit"ted the starter grid, then the Zones within the grid come to life for you to be able to further subdivide them
/// using splitters
///
public partial class GridZone : UserControl
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Models/LayoutModel.cs b/src/modules/fancyzones/editor/FancyZonesEditor/Models/LayoutModel.cs
index 515b76c3dd..d2c5ab0442 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/Models/LayoutModel.cs
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/Models/LayoutModel.cs
@@ -115,7 +115,7 @@ namespace FancyZonesEditor.Models
private bool _isSelected;
- // implementation of INotifyProeprtyChanged
+ // implementation of INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
// FirePropertyChanged -- wrapper that calls INPC.PropertyChanged
@@ -163,7 +163,7 @@ namespace FancyZonesEditor.Models
}
}
- // Loads all the custom Layouts from tmp file passed by FancuZonesLib
+ // Loads all the custom Layouts from tmp file passed by FancyZonesLib
public static ObservableCollection LoadCustomModels()
{
_customModels = new ObservableCollection();
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Models/Settings.cs b/src/modules/fancyzones/editor/FancyZonesEditor/Models/Settings.cs
index 2ae0f2fcab..d039877349 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/Models/Settings.cs
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/Models/Settings.cs
@@ -471,7 +471,7 @@ namespace FancyZonesEditor
return model.Type != LayoutType.Custom;
}
- // implementation of INotifyProeprtyChanged
+ // implementation of INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
// FirePropertyChanged -- wrapper that calls INPC.PropertyChanged
diff --git a/src/modules/fancyzones/lib/FancyZones.cpp b/src/modules/fancyzones/lib/FancyZones.cpp
index efa70c88f0..e93163ef44 100644
--- a/src/modules/fancyzones/lib/FancyZones.cpp
+++ b/src/modules/fancyzones/lib/FancyZones.cpp
@@ -942,7 +942,7 @@ bool FancyZones::IsNewWorkArea(GUID virtualDesktopId, HMONITOR monitor) noexcept
void FancyZones::OnEditorExitEvent() noexcept
{
- // Colect information about changes in zone layout after editor exited.
+ // Collect information about changes in zone layout after editor exited.
JSONHelpers::FancyZonesDataInstance().ParseDeviceInfoFromTmpFile(ZoneWindowUtils::GetActiveZoneSetTmpPath());
JSONHelpers::FancyZonesDataInstance().ParseDeletedCustomZoneSetsFromTmpFile(ZoneWindowUtils::GetCustomZoneSetsTmpPath());
JSONHelpers::FancyZonesDataInstance().ParseCustomZoneSetFromTmpFile(ZoneWindowUtils::GetAppliedZoneSetTmpPath());
diff --git a/src/modules/fancyzones/lib/FancyZones.h b/src/modules/fancyzones/lib/FancyZones.h
index 26ccb5c32a..143e082d84 100644
--- a/src/modules/fancyzones/lib/FancyZones.h
+++ b/src/modules/fancyzones/lib/FancyZones.h
@@ -77,11 +77,11 @@ interface __declspec(uuid("{5C8D99D6-34B2-4F4A-A8E5-7483F6869775}")) IZoneWindow
*/
IFACEMETHOD_(IZoneWindow*, GetParentZoneWindow) (HMONITOR monitor) = 0;
/**
- * @returns Integer in range [0, 100] indicating opacity of highlited zone (while giving zone layout hints).
+ * @returns Integer in range [0, 100] indicating opacity of highlighted zone (while giving zone layout hints).
*/
IFACEMETHOD_(int, GetZoneHighlightOpacity)() = 0;
/**
- * @returns Boolean indicating if dragged window should be transparrent.
+ * @returns Boolean indicating if dragged window should be transparent.
*/
IFACEMETHOD_(bool, isMakeDraggedWindowTransparentActive) () = 0;
/**
diff --git a/src/modules/fancyzones/lib/Settings.cpp b/src/modules/fancyzones/lib/Settings.cpp
index c6f8cd0937..51791f0eb6 100644
--- a/src/modules/fancyzones/lib/Settings.cpp
+++ b/src/modules/fancyzones/lib/Settings.cpp
@@ -71,7 +71,7 @@ IFACEMETHODIMP_(bool) FancyZonesSettings::GetConfig(_Out_ PWSTR buffer, _Out_ in
settings.set_video_link(L"https://youtu.be/rTtGzZYAXgY");
// Add a custom action property. When using this settings type, the "PowertoyModuleIface::call_custom_action()"
- // method should be overriden as well.
+ // method should be overridden as well.
settings.add_custom_action(
L"ToggledFZEditor", // action name.
IDS_SETTING_LAUNCH_EDITOR_LABEL,
diff --git a/src/modules/fancyzones/lib/ZoneWindow.h b/src/modules/fancyzones/lib/ZoneWindow.h
index bdac1cb04f..297cfca0ad 100644
--- a/src/modules/fancyzones/lib/ZoneWindow.h
+++ b/src/modules/fancyzones/lib/ZoneWindow.h
@@ -39,7 +39,7 @@ interface __declspec(uuid("{7F017528-8110-4FB3-BE41-F472969C2560}")) IZoneWindow
* is dropped within zone borders.
*
* @param window Handle of window being moved or resized.
- * @param ptScreen Cursor coordinates where window is droped.
+ * @param ptScreen Cursor coordinates where window is dropped.
*/
IFACEMETHOD(MoveSizeEnd)(HWND window, POINT const& ptScreen) = 0;
/**
@@ -79,7 +79,7 @@ interface __declspec(uuid("{7F017528-8110-4FB3-BE41-F472969C2560}")) IZoneWindow
*/
IFACEMETHOD_(void, CycleActiveZoneSet)(DWORD vkCode) = 0;
/**
- * Restore orginal transaprency of dragged window.
+ * Restore original transaprency of dragged window.
*/
IFACEMETHOD_(void, RestoreOrginalTransparency) () = 0;
/**
diff --git a/src/modules/imageresizer/dll/dllmain.cpp b/src/modules/imageresizer/dll/dllmain.cpp
index 337fdf4172..049a6754ee 100644
--- a/src/modules/imageresizer/dll/dllmain.cpp
+++ b/src/modules/imageresizer/dll/dllmain.cpp
@@ -54,7 +54,7 @@ public:
}
// Return array of the names of all events that this powertoy listens for, with
- // nullptr as the last element of the array. Nullptr can also be retured for empty
+ // nullptr as the last element of the array. Nullptr can also be returned for empty
// list.
virtual const wchar_t** get_events() override
{
diff --git a/src/modules/keyboardmanager/common/KeyboardManagerState.cpp b/src/modules/keyboardmanager/common/KeyboardManagerState.cpp
index b2c1eb61ce..1ba67526d5 100644
--- a/src/modules/keyboardmanager/common/KeyboardManagerState.cpp
+++ b/src/modules/keyboardmanager/common/KeyboardManagerState.cpp
@@ -266,7 +266,7 @@ void KeyboardManagerState::SelectDetectedRemapKey(DWORD key)
void KeyboardManagerState::SelectDetectedShortcut(DWORD key)
{
- // Set the new key and store if a change occured
+ // Set the new key and store if a change occurred
std::unique_lock lock(detectedShortcut_mutex);
bool updateUI = detectedShortcut.SetKey(key);
lock.unlock();
diff --git a/src/modules/keyboardmanager/common/KeyboardManagerState.h b/src/modules/keyboardmanager/common/KeyboardManagerState.h
index 3a51061f3e..4c596a4d8a 100644
--- a/src/modules/keyboardmanager/common/KeyboardManagerState.h
+++ b/src/modules/keyboardmanager/common/KeyboardManagerState.h
@@ -76,7 +76,7 @@ private:
public:
// The map members and their mutexes are left as public since the maps are used extensively in dllmain.cpp.
- // Maps which store the remappings for each of the features. The bool fields should be initalised to false. They are used to check the current state of the shortcut (i.e is that particular shortcut currently pressed down or not).
+ // Maps which store the remappings for each of the features. The bool fields should be initialized to false. They are used to check the current state of the shortcut (i.e is that particular shortcut currently pressed down or not).
// Stores single key remappings
std::unordered_map singleKeyReMap;
std::mutex singleKeyReMap_mutex;
@@ -179,9 +179,9 @@ public:
// Save the updated configuration.
bool SaveConfigToFile();
- // Sets the Current Active Configuartion Name.
+ // Sets the Current Active Configuration Name.
void SetCurrentConfigName(const std::wstring& configName);
- // Gets the Current Active Configuartion Name.
+ // Gets the Current Active Configuration Name.
std::wstring GetCurrentConfigName();
-};
\ No newline at end of file
+};
diff --git a/src/modules/keyboardmanager/common/Shortcut.cpp b/src/modules/keyboardmanager/common/Shortcut.cpp
index 77614979d0..f0710a082d 100644
--- a/src/modules/keyboardmanager/common/Shortcut.cpp
+++ b/src/modules/keyboardmanager/common/Shortcut.cpp
@@ -778,7 +778,7 @@ KeyboardManagerHelper::ErrorType Shortcut::DoKeysOverlap(const Shortcut& first,
// action keys match
else if (first.actionKey == second.actionKey)
{
- // corresponding modifiers are either both disabled or both not disabled - this ensures that both match in types of modifers i.e. Ctrl(l/r/c) Shift (l/r/c) A matches Ctrl(l/r/c) Shift (l/r/c) A
+ // corresponding modifiers are either both disabled or both not disabled - this ensures that both match in types of modifiers i.e. Ctrl(l/r/c) Shift (l/r/c) A matches Ctrl(l/r/c) Shift (l/r/c) A
if (((first.winKey != ModifierKey::Disabled && second.winKey != ModifierKey::Disabled) || (first.winKey == ModifierKey::Disabled && second.winKey == ModifierKey::Disabled)) &&
((first.ctrlKey != ModifierKey::Disabled && second.ctrlKey != ModifierKey::Disabled) || (first.ctrlKey == ModifierKey::Disabled && second.ctrlKey == ModifierKey::Disabled)) &&
((first.altKey != ModifierKey::Disabled && second.altKey != ModifierKey::Disabled) || (first.altKey == ModifierKey::Disabled && second.altKey == ModifierKey::Disabled)) &&
diff --git a/src/modules/keyboardmanager/common/Shortcut.h b/src/modules/keyboardmanager/common/Shortcut.h
index 7f4e617c9a..66904c15fb 100644
--- a/src/modules/keyboardmanager/common/Shortcut.h
+++ b/src/modules/keyboardmanager/common/Shortcut.h
@@ -29,7 +29,7 @@ public:
{
}
- // Constructor to intialize Shortcut from it's virtual key code string representation.
+ // Constructor to initialize Shortcut from it's virtual key code string representation.
Shortcut(const std::wstring& shortcutVK) :
winKey(ModifierKey::Disabled), ctrlKey(ModifierKey::Disabled), altKey(ModifierKey::Disabled), shiftKey(ModifierKey::Disabled), actionKey(NULL)
{
diff --git a/src/modules/keyboardmanager/dll/dllmain.cpp b/src/modules/keyboardmanager/dll/dllmain.cpp
index 1106e4a160..59c285cdb8 100644
--- a/src/modules/keyboardmanager/dll/dllmain.cpp
+++ b/src/modules/keyboardmanager/dll/dllmain.cpp
@@ -190,7 +190,7 @@ public:
}
// Return array of the names of all events that this powertoy listens for, with
- // nullptr as the last element of the array. Nullptr can also be retured for empty
+ // nullptr as the last element of the array. Nullptr can also be returned for empty
// list.
virtual const wchar_t** get_events() override
{
diff --git a/src/modules/powerrename/dll/dllmain.cpp b/src/modules/powerrename/dll/dllmain.cpp
index da684cc0a4..c8e1ac5611 100644
--- a/src/modules/powerrename/dll/dllmain.cpp
+++ b/src/modules/powerrename/dll/dllmain.cpp
@@ -184,7 +184,7 @@ public:
}
// Return array of the names of all events that this powertoy listens for, with
- // nullptr as the last element of the array. Nullptr can also be retured for empty list.
+ // nullptr as the last element of the array. Nullptr can also be returned for empty list.
virtual PCWSTR* get_events() override
{
return nullptr;
diff --git a/src/modules/powerrename/ui/PowerRenameUI.cpp b/src/modules/powerrename/ui/PowerRenameUI.cpp
index 6aa9ab3e15..0f2b010811 100644
--- a/src/modules/powerrename/ui/PowerRenameUI.cpp
+++ b/src/modules/powerrename/ui/PowerRenameUI.cpp
@@ -374,7 +374,7 @@ void CPowerRenameUI::_Cleanup()
void CPowerRenameUI::_EnumerateItems(_In_ IUnknown* pdtobj)
{
- // Enumerate the data object and popuplate the manager
+ // Enumerate the data object and populate the manager
if (m_spsrm)
{
m_disableCountUpdate = true;
@@ -640,7 +640,7 @@ void CPowerRenameUI::_OnInitDlg()
_InitAutoComplete();
// Disable rename button by default. It will be enabled in _UpdateCounts if
- // there are tiems to be renamed
+ // there are times to be renamed
EnableWindow(GetDlgItem(m_hwnd, ID_RENAME), FALSE);
// Update UI elements that depend on number of items selected or to be renamed
diff --git a/src/modules/previewpane/README.md b/src/modules/previewpane/README.md
index 41174c45f9..155d2cb369 100644
--- a/src/modules/previewpane/README.md
+++ b/src/modules/previewpane/README.md
@@ -172,7 +172,7 @@ Update the `PackagingLayout.xml` to include dll's required by the new Preview Ha
```
-Add the actual Clsid of the new preview handler in `CLSID.h` in `powerpreview` project and class registration registry changes in `registry.dat` similar to existing preview handler. To update the `registry.dat` mount the registry hive on a empty key in registry by using `reggedit.exe` and add registry key for class registartion for the new preview handler similar to MSI class registration and existing preview handlers. And export the updated `registry.dat` hive also export the `registry.reg` file for making the contents in `registy.dat` visible in source code.
+Add the actual Clsid of the new preview handler in `CLSID.h` in `powerpreview` project and class registration registry changes in `registry.dat` similar to existing preview handler. To update the `registry.dat` mount the registry hive on a empty key in registry by using `reggedit.exe` and add registry key for class registration for the new preview handler similar to MSI class registration and existing preview handlers. And export the updated `registry.dat` hive also export the `registry.reg` file for making the contents in `registry.dat` visible in source code.
```cpp
// CLSID used in manifest file for Preview Handler.
diff --git a/src/modules/previewpane/SvgPreviewHandler/Telemetry/Events/SvgFilePreviewError.cs b/src/modules/previewpane/SvgPreviewHandler/Telemetry/Events/SvgFilePreviewError.cs
index 0f76d84e93..24dcebe50b 100644
--- a/src/modules/previewpane/SvgPreviewHandler/Telemetry/Events/SvgFilePreviewError.cs
+++ b/src/modules/previewpane/SvgPreviewHandler/Telemetry/Events/SvgFilePreviewError.cs
@@ -9,13 +9,13 @@ using Microsoft.PowerToys.Telemetry.Events;
namespace SvgPreviewHandler.Telemetry.Events
{
///
- /// A telemetry event to be raised when an error has occured in the preview pane.
+ /// A telemetry event to be raised when an error has occurred in the preview pane.
///
[EventData]
public class SvgFilePreviewError : EventBase, IEvent
{
///
- /// Gets or sets the error messsage to log as part of the telemetry event.
+ /// Gets or sets the error message to log as part of the telemetry event.
///
public string Message { get; set; }
diff --git a/src/modules/previewpane/common/handlers/PreviewHandlerBase.cs b/src/modules/previewpane/common/handlers/PreviewHandlerBase.cs
index 7d84e0cc5e..e61a40b838 100644
--- a/src/modules/previewpane/common/handlers/PreviewHandlerBase.cs
+++ b/src/modules/previewpane/common/handlers/PreviewHandlerBase.cs
@@ -12,7 +12,7 @@ using Microsoft.Win32;
namespace Common
{
///
- /// Preview Handler base class implmenenting interfaces required by Preview Handler.
+ /// Preview Handler base class implementing interfaces required by Preview Handler.
///
public abstract class PreviewHandlerBase : IPreviewHandler, IOleWindow, IObjectWithSite, IPreviewHandlerVisuals
{
@@ -150,7 +150,7 @@ namespace Common
}
///
- /// Provide instance of the implementation of . Should be overide by the implementation class with control object to be used.
+ /// Provide instance of the implementation of . Should be overridden by the implementation class with a control object to be used.
///
/// Instance of the .
protected abstract IPreviewHandlerControl CreatePreviewHandlerControl();
diff --git a/src/modules/previewpane/powerpreview/powerpreview.cpp b/src/modules/previewpane/powerpreview/powerpreview.cpp
index 7b9763bcc1..82d0bf9ec6 100644
--- a/src/modules/previewpane/powerpreview/powerpreview.cpp
+++ b/src/modules/previewpane/powerpreview/powerpreview.cpp
@@ -97,7 +97,7 @@ void PowerPreviewModule::enable()
{
if (previewHandler->GetToggleSettingState())
{
- // Enable all the previews with intial state set as true.
+ // Enable all the previews with initial state set as true.
previewHandler->EnablePreview();
}
else
diff --git a/src/modules/previewpane/powerpreview/powerpreview.h b/src/modules/previewpane/powerpreview/powerpreview.h
index a61434bf7d..45a3feca9c 100644
--- a/src/modules/previewpane/powerpreview/powerpreview.h
+++ b/src/modules/previewpane/powerpreview/powerpreview.h
@@ -22,7 +22,7 @@ public:
PowerPreviewModule() :
m_moduleName(GET_RESOURCE_STRING(IDS_MODULE_NAME)),
m_previewHandlers(
- { // SVG Preview Hanlder settings object.
+ { // SVG Preview Handler settings object.
new FileExplorerPreviewSettings(
true,
L"svg-previewer-toggle-setting",
diff --git a/src/modules/previewpane/powerpreview/settings.cpp b/src/modules/previewpane/powerpreview/settings.cpp
index 4f9448817d..97b42bab9f 100644
--- a/src/modules/previewpane/powerpreview/settings.cpp
+++ b/src/modules/previewpane/powerpreview/settings.cpp
@@ -14,7 +14,7 @@ namespace PowerPreviewSettings
// Relative(HKLM/HKCU) sub key path of Preview Handlers list in registry.
static LPCWSTR preview_handlers_subkey = L"Software\\Microsoft\\Windows\\CurrentVersion\\PreviewHandlers";
- // Base Settinngs Class Implementation
+ // Base Settings Class Implementation
FileExplorerPreviewSettings::FileExplorerPreviewSettings(bool toggleSettingEnabled, const std::wstring& toggleSettingName, const std::wstring& toggleSettingDescription, LPCWSTR clsid, const std::wstring& registryValueData, RegistryWrapperIface* registryWrapper) :
m_toggleSettingEnabled(toggleSettingEnabled),
m_toggleSettingName(toggleSettingName),
@@ -63,13 +63,13 @@ namespace PowerPreviewSettings
return this->m_registryValueData;
}
- // Load intital state of the Preview Handler. If no inital state present initialize setting with default value.
+ // Load initial state of the Preview Handler. If no inital state present initialize setting with default value.
void FileExplorerPreviewSettings::LoadState(PowerToysSettings::PowerToyValues& settings)
{
auto toggle = settings.get_bool_value(this->GetToggleSettingName());
if (toggle)
{
- // If no exisiting setting found leave the default intitialization value.
+ // If no existing setting found leave the default initialization value.
this->UpdateToggleSettingState(*toggle);
}
}
diff --git a/src/modules/previewpane/powerpreview/settings.h b/src/modules/previewpane/powerpreview/settings.h
index 2cb65034f4..7acb8c75d7 100644
--- a/src/modules/previewpane/powerpreview/settings.h
+++ b/src/modules/previewpane/powerpreview/settings.h
@@ -7,7 +7,7 @@
namespace PowerPreviewSettings
{
- // PowerToy Winodws Explore File Preview Settings.
+ // PowerToy Windows Explore File Preview Settings.
class FileExplorerPreviewSettings
{
private:
diff --git a/src/modules/shortcut_guide/overlay_window.cpp b/src/modules/shortcut_guide/overlay_window.cpp
index 752e4982af..d2dceb1d83 100644
--- a/src/modules/shortcut_guide/overlay_window.cpp
+++ b/src/modules/shortcut_guide/overlay_window.cpp
@@ -414,7 +414,7 @@ void D2DOverlayWindow::on_hide()
DwmUnregisterThumbnail(thumbnail);
}
std::chrono::steady_clock::time_point shown_end_time = std::chrono::steady_clock::now();
- // Trace the event only if the overaly window was visible.
+ // Trace the event only if the overlay window was visible.
if (shown_start_time.time_since_epoch().count() > 0)
{
Trace::HideGuide(std::chrono::duration_cast(shown_end_time - shown_start_time).count(), key_pressed);
@@ -512,7 +512,7 @@ void D2DOverlayWindow::resize()
window_rect = *get_window_pos(hwnd);
float no_active_scale, font;
if (window_width >= window_height)
- { // portriat is broke right now
+ { // portrait is broke right now
use_overlay = &landscape;
no_active_scale = 0.3f;
font = 15.0f;
@@ -692,7 +692,7 @@ void D2DOverlayWindow::render(ID2D1DeviceContext5* d2d_dc)
total_monitor_with_screen.rect.right = max(total_monitor_with_screen.rect.right, thumb_window->right + monitor_dx);
total_monitor_with_screen.rect.bottom = max(total_monitor_with_screen.rect.bottom, thumb_window->bottom + monitor_dy);
}
- // Only allow the new rect beeing slight bigger.
+ // Only allow the new rect being slight bigger.
if (total_monitor_with_screen.width() - total_screen.width() > (thumb_window->right - thumb_window->left) / 2 ||
total_monitor_with_screen.height() - total_screen.height() > (thumb_window->bottom - thumb_window->top) / 2)
{