updated app data

This commit is contained in:
seraphima
2024-05-27 15:15:34 +02:00
parent cc553a60d5
commit 9f61f0793d
5 changed files with 42 additions and 26 deletions

View File

@@ -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;