Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ jobs:
ref: ${{ inputs.source_sha }}
submodules: recursive

# The checkout of a commit detaches HEAD, and the build information then records the branch
# as unknown. A local branch at the same commit, named after the branch that triggered the
# run, gives the build information its name.
- name: Name the branch of the checkout
env:
SOURCE_BRANCH: ${{ github.head_ref || github.ref_name }}
run: git checkout -B $env:SOURCE_BRANCH

- name: Initialize building environment
uses: ./.github/actions/initialize-build-environment
with:
Expand Down
11 changes: 11 additions & 0 deletions src/plugins/coreplugin/qml/actions/WorkspaceAddOnActions.qml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ ActionCollection {
id: layouts

Instantiator {
model: customLayoutRepeater.count === 0 ? 1 : 0
delegate: MenuItem {
text: "..."
enabled: false
}
onObjectAdded: (index, object) => layouts.insertItem(0, object)
onObjectRemoved: (index, object) => layouts.removeItem(object)
}

Instantiator {
id: customLayoutRepeater
model: collection.addOn?.workspaceManager?.customLayouts ?? []
delegate: Menu {
required property var modelData
Expand Down
Loading