add setting
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
<MudStack Class="ml-2 mr-4 mb-2">
|
||||
<MudSwitch @bind-Value="@AppState.IdeSettings.AutoOpenLastSolution" Label="Automatically open last solution" Color="Color.Primary" />
|
||||
<MudSwitch @bind-Value="@AppState.IdeSettings.AutoOpenTerminalOnLaunch" Label="Automatically open terminal when SharpIDE starts" Color="Color.Primary" />
|
||||
</MudStack>
|
||||
|
||||
@code {
|
||||
|
||||
@@ -2,11 +2,12 @@ namespace SharpIDE.Photino.Models;
|
||||
|
||||
public class AppState
|
||||
{
|
||||
public required string SolutionFilePath { get; set; }
|
||||
public required string? SolutionFilePath { get; set; }
|
||||
public required IdeSettings IdeSettings { get; set; } = new IdeSettings();
|
||||
}
|
||||
|
||||
public class IdeSettings
|
||||
{
|
||||
public bool AutoOpenLastSolution { get; set; }
|
||||
public bool AutoOpenTerminalOnLaunch { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user