-
+
-
-
+
+
@@ -90,16 +87,13 @@
@code {
private bool _drawerOpen = true;
- private bool _terminalDrawerOpen = false;
- private bool _bottomDrawerOpen = true;
+ private bool _bottomDrawerOpen = false;
private void DrawerToggle() => _drawerOpen = !_drawerOpen;
- private void TerminalDrawerToggle() => _terminalDrawerOpen = !_terminalDrawerOpen;
- private void BottomDrawerToggle() => _bottomDrawerOpen = !_bottomDrawerOpen;
private string? _solutionFilePath;
private SharpIdeSolutionModel? _solutionModel;
private SharpIdeFile? _selectedFile;
- private BottomPanelType? _selectedBottomPanel = BottomPanelType.Build;
+ private BottomPanelType? _selectedBottomPanel = null;
private string MainContentHeight => _bottomDrawerOpen ? "70%" : "100%";
@@ -122,16 +116,6 @@
protected override async Task OnInitializedAsync()
{
await LoadSolutionFromInteractivePicker(AppState.IdeSettings.AutoOpenLastSolution);
- if (AppState.IdeSettings.AutoOpenTerminalOnLaunch)
- {
- _ = Task.Run(async () =>
- {
- // The mud drawer is a pain, has an initial state, and won't open if you try to open it before it has rendered (presumably using js)
- await Task.Delay(125).ConfigureAwait(false);
- _terminalDrawerOpen = true;
- await InvokeAsync(StateHasChanged).ConfigureAwait(false);
- }).ConfigureAwait(false);
- }
}
private async Task LoadSolutionFromInteractivePicker() => await LoadSolutionFromInteractivePicker(false);
@@ -155,7 +139,7 @@
private async Task RestoreSolution() => await MsBuildSolution(BuildType.Restore);
private async Task MsBuildSolution(BuildType buildType)
{
- if (AppState.IdeSettings.OpenTerminalOnBuildRebuildRestore) _terminalDrawerOpen = true;
+ if (AppState.IdeSettings.OpenTerminalOnBuildRebuildRestore) SelectBuildPanel();
_cancellationTokenSource = new CancellationTokenSource();
await BuildService.MsBuildSolutionAsync(_solutionFilePath!, buildType, _cancellationTokenSource.Token);
_cancellationTokenSource = null;