mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-23 23:20:05 +01:00
updated app data
This commit is contained in:
@@ -35,10 +35,14 @@ namespace ProjectsEditor.Models
|
||||
|
||||
public IntPtr Hwnd { get; set; }
|
||||
|
||||
public string AppName { get; set; }
|
||||
|
||||
public string AppPath { get; set; }
|
||||
|
||||
public string AppTitle { get; set; }
|
||||
|
||||
public string PackageFullName { get; set; }
|
||||
|
||||
public string CommandLineArguments { get; set; }
|
||||
|
||||
public bool Minimized { get; set; }
|
||||
@@ -132,20 +136,6 @@ namespace ProjectsEditor.Models
|
||||
}
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
public string AppName
|
||||
{
|
||||
get
|
||||
{
|
||||
if (File.Exists(AppPath))
|
||||
{
|
||||
return Path.GetFileNameWithoutExtension(AppPath);
|
||||
}
|
||||
|
||||
return AppPath.Split('\\').LastOrDefault();
|
||||
}
|
||||
}
|
||||
|
||||
public WindowPosition Position { get; set; }
|
||||
|
||||
private WindowPosition? _scaledPosition;
|
||||
|
||||
Reference in New Issue
Block a user