add opened slns to previous sln list
This commit is contained in:
@@ -4,7 +4,7 @@ public class AppState
|
||||
{
|
||||
public string? LastOpenSolutionFilePath { get; set; }
|
||||
public IdeSettings IdeSettings { get; set; } = new IdeSettings();
|
||||
public List<PreviouslyOpenedSln> PreviouslyOpenedSolutions { get; set; } = [];
|
||||
public HashSet<PreviouslyOpenedSln> PreviouslyOpenedSolutions { get; set; } = [];
|
||||
}
|
||||
|
||||
public class IdeSettings
|
||||
@@ -12,7 +12,7 @@ public class IdeSettings
|
||||
public bool AutoOpenLastSolution { get; set; }
|
||||
}
|
||||
|
||||
public class PreviouslyOpenedSln
|
||||
public record PreviouslyOpenedSln
|
||||
{
|
||||
public required string Name { get; set; }
|
||||
public required string FilePath { get; set; }
|
||||
|
||||
@@ -79,6 +79,7 @@ public partial class IdeWindow : Control
|
||||
return;
|
||||
}
|
||||
ideRoot.SetSlnFilePath(slnPath);
|
||||
Singletons.AppState.PreviouslyOpenedSolutions.Add(new PreviouslyOpenedSln { FilePath = slnPath, Name = Path.GetFileName(slnPath) });
|
||||
|
||||
await this.InvokeAsync(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user