We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f85553a commit 4193fc8Copy full SHA for 4193fc8
src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs
@@ -61,14 +61,8 @@ private async Task OnBottomPanelTabSelected(BottomPanelType? type)
61
{
62
await this.InvokeAsync(() =>
63
64
- if (type == null)
65
- {
66
- GodotGlobalEvents.Instance.BottomPanelVisibilityChangeRequested.InvokeParallelFireAndForget(false);
67
- }
68
- else
69
70
- GodotGlobalEvents.Instance.BottomPanelVisibilityChangeRequested.InvokeParallelFireAndForget(true);
71
+ var visible = type is not null;
+ GodotGlobalEvents.Instance.BottomPanelVisibilityChangeRequested.InvokeParallelFireAndForget(visible);
72
foreach (var kvp in _panelTypeMap)
73
74
kvp.Value.Visible = kvp.Key == type;
0 commit comments