Skip to content

Commit

Permalink
Merge pull request #55 from endlessm/T35511-fix-tab-opening
Browse files Browse the repository at this point in the history
Only show Block Code tab if a BlockCode node is selected
  • Loading branch information
manuq authored Jun 19, 2024
2 parents 2c47fde + 56942c0 commit 29563a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/block_code/ui/main_panel.gd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ func switch_script(block_code_node: BlockCode):
_picker.bsd_selected(bsd)
_title_bar.bsd_selected(bsd)
_block_canvas.bsd_selected(bsd)
block_code_tab.pressed.emit()
if block_code_node:
block_code_tab.pressed.emit()


func save_script():
Expand Down

0 comments on commit 29563a5

Please sign in to comment.