mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
PWAs should not show up when searching for the main app (#4221)
* Search shows up steam games * Formatting * Filtering only those steam shortcuts which run an application * Using equals instead of == * PWAs should not show up when searching for the main app * Modified the subtitle to say progressive web application * renamed to web application * To search for web applications for all chromium based browsers * Renamed it to WebApplication * Added unit tests and refactored code * made string global const * Added localization tags * Added a separate function for localization as the IPublic API was not available to all * Removed unnecessary references and variables * Update src/modules/launcher/Plugins/Microsoft.Plugin.Program/Languages/de.xaml Co-authored-by: htcfreek <61519853+htcfreek@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: htcfreek <61519853+htcfreek@users.noreply.github.com> * Added enum for application types Co-authored-by: htcfreek <61519853+htcfreek@users.noreply.github.com>
This commit is contained in:
@@ -103,6 +103,7 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
public String description = String.Empty;
|
||||
|
||||
// Sets to true if the program takes in arguments
|
||||
public String Arguments = String.Empty;
|
||||
public bool hasArguments = false;
|
||||
|
||||
// Retrieve the target path using Shell Link
|
||||
@@ -130,6 +131,7 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
|
||||
StringBuilder argumentBuffer = new StringBuilder(MAX_PATH);
|
||||
((IShellLinkW)link).GetArguments(argumentBuffer, argumentBuffer.Capacity);
|
||||
Arguments = argumentBuffer.ToString();
|
||||
|
||||
// Set variable to true if the program takes in any arguments
|
||||
if (argumentBuffer.Length != 0)
|
||||
|
||||
Reference in New Issue
Block a user