auto open sln

This commit is contained in:
Matt Parker
2025-08-02 15:09:13 +10:00
parent bc836a3c00
commit 67e781d431

View File

@@ -24,6 +24,17 @@
_solutionFilePath = AppState.SolutionFilePath;
}
protected override void OnAfterRender(bool firstRender)
{
if (firstRender)
{
if (AppState.IdeSettings.AutoOpenLastSolution && !string.IsNullOrWhiteSpace(_solutionFilePath))
{
MudDialog.Close(_solutionFilePath);
}
}
}
private async Task PickSolution()
{
var files = await PhotinoBlazorApp.MainWindow.ShowOpenFileAsync("Choose Solution File", filters: [("Solution File", [".sln", ".slnx"])]);