Repository navigation
Blocks palette: open a library drawing, and come back on the tab and folder left - #3606
Merged
HakanSeven12 merged 2 commits intoNov 24, 2026
Merged
Conversation
…folder left The Libraries tab lists a folder's drawings, but a drawing could only be inserted: someone who keeps template drawings in a library still needed a file manager beside it to open one. Now: - Right-click a library drawing, or a whole drawing on the Recent or Favorites tab, and choose Open Drawing: it opens in its own tab the way a drawing dropped on the window opens (a tab already showing it comes to the front). - The palette remembers the tab it was left on and the library folder the Libraries tab showed, across sessions (block_palette_tab, block_library_folder in the settings). The folder is used when it still exists; BLOCKNAVIGATE, when it names a folder, still comes first. The new menu text is in every language. Wiki page BLOCKPALETTE updated. Tests (app::update::block_palette_library_tests): the menu opens the drawing; only drawings offer Open Drawing; tab and sub-folder come back in the next session, a folder that is gone falls back to the library root; tab indices round-trip.
The palette's tabs, headings, options and messages were still in English in the German catalog.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The Blocks palette's Libraries tab lists a folder's drawings, but a drawing could only be inserted. Someone who keeps
their template drawings in a library folder still needed a file manager beside the palette to open one for editing.
And the palette always came back on Current Drawing at the library root, so getting to a template meant several clicks
every session.
It opens in its own tab the way a drawing dropped on the window opens (a tab already showing it comes to the front).
sessions (
block_palette_tab,block_library_folderin the settings). The folder is used while it exists; whenBLOCKNAVIGATEnames a folder, that still comes first. A folder that is gone falls back to the library root.labels are short enough to fit the palette's default width.
Wiki page
BLOCKPALETTEupdated.Checked
On a desktop build: right-click a drawing in a library sub-folder → Open Drawing opens it in a new tab; closing and
starting again,
BLOCKSPALETTEcomes back on the Libraries tab in that sub-folder.Tests
app::update::block_palette_library_tests:a_library_drawing_opens_from_the_context_menuonly_drawings_offer_open_drawing(library drawing and whole-drawing entries yes; blocks, current-drawing blocks andfolders no)
the_palette_comes_back_on_its_tab_and_library_folder(and falls back to the root when the folder is gone; failswithout the change)
tabs_round_trip_through_their_settings_indexcargo test --lib: 7087 passed. No new clippy warnings in the changed lines.