Skip to content

Commit 29563a5

Browse files
authored
Merge pull request #55 from endlessm/T35511-fix-tab-opening
Only show Block Code tab if a BlockCode node is selected
2 parents 2c47fde + 56942c0 commit 29563a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

addons/block_code/ui/main_panel.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ func switch_script(block_code_node: BlockCode):
4646
_picker.bsd_selected(bsd)
4747
_title_bar.bsd_selected(bsd)
4848
_block_canvas.bsd_selected(bsd)
49-
block_code_tab.pressed.emit()
49+
if block_code_node:
50+
block_code_tab.pressed.emit()
5051

5152

5253
func save_script():

0 commit comments

Comments
 (0)