Skip to content

Commit

Permalink
add "PowerToys Run" to title of error messageboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegiacometti committed Sep 3, 2024
1 parent 91d0c57 commit 9ee52f5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion src/modules/launcher/PowerLauncher/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,17 @@
<value>Plugins: {0} - fail to load and would be disabled, please contact plugins creator for help</value>
</data>
<data name="FailedToInitializePluginsTitle" xml:space="preserve">
<value>Fail to initialize plugins</value>
<value>PowerToys Run - Plugin Initialization Error</value>
<comment>Don't translate "PowerToys Run". This is a product name.</comment>
</data>
<data name="ContextMenuItemsAvailable" xml:space="preserve">
<value>Appended controls available</value>
</data>
<data name="PluginKeywords" xml:space="preserve">
<value>Plugin keywords</value>
</data>
<data name="RegisterHotkeyFailedTitle" xml:space="preserve">
<value>PowerToys Run - Hotkey Error</value>
<comment>Don't translate "PowerToys Run". This is a product name.</comment>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ private void SetHotkey(IntPtr hwnd, HotkeyModel hotkeyModel, HotkeyCallback acti
catch (Exception)
{
string errorMsg = string.Format(CultureInfo.InvariantCulture, RegisterHotkeyFailed, hotkeyStr);
MessageBox.Show(errorMsg);
MessageBox.Show(errorMsg, Properties.Resources.RegisterHotkeyFailedTitle);
}
}

Expand Down

0 comments on commit 9ee52f5

Please sign in to comment.