mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
app name fix
This commit is contained in:
@@ -180,18 +180,6 @@ namespace ProjectsEditor.Models
|
||||
PropertyChanged?.Invoke(this, e);
|
||||
}
|
||||
|
||||
internal bool IsMyAppPath(string path)
|
||||
{
|
||||
if (!IsPackagedApp)
|
||||
{
|
||||
return path.Equals(AppPath, StringComparison.Ordinal);
|
||||
}
|
||||
else
|
||||
{
|
||||
return path.Contains(PackagedName + "_", StringComparison.InvariantCultureIgnoreCase) && path.Contains(PackagedPublisherID, StringComparison.InvariantCultureIgnoreCase);
|
||||
}
|
||||
}
|
||||
|
||||
private bool? _isPackagedApp;
|
||||
|
||||
public string PackagedId { get; set; }
|
||||
|
||||
@@ -202,9 +202,11 @@ namespace ProjectsEditor.Models
|
||||
{
|
||||
Applications.Add(new Application()
|
||||
{
|
||||
AppName = item.AppName,
|
||||
AppPath = item.AppPath,
|
||||
AppTitle = item.AppTitle,
|
||||
CommandLineArguments = item.CommandLineArguments,
|
||||
PackageFullName = item.PackageFullName,
|
||||
Minimized = item.Minimized,
|
||||
Maximized = item.Maximized,
|
||||
IsSelected = item.IsSelected,
|
||||
|
||||
Reference in New Issue
Block a user