Skip to content

Commit

Permalink
Stack the New Session buttons vertically
Browse files Browse the repository at this point in the history
  • Loading branch information
sedwards2009 committed May 25, 2024
1 parent e59c8e5 commit 5bcbfff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main/src/settings/SessionTypesPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class SessionTypesPage implements SettingsPageType {
}),

BoxLayout({
direction: Direction.LeftToRight,
direction: Direction.TopToBottom,
children: this.#createNewSessionTypeButtons()
}),

Expand Down Expand Up @@ -176,7 +176,8 @@ export class SessionTypesPage implements SettingsPageType {
}

#createNewSessionTypeButtons(): QPushButton[] {
return this.#extensionManager.getAllSessionTypes().map(st =>
const sessionTypes = this.#extensionManager.getAllSessionTypes().sort((a, b) => a.name.localeCompare(b.name));
return sessionTypes.map(st =>
PushButton({
text: `New ${st.name} session type`,
onClicked: () => {
Expand Down

0 comments on commit 5bcbfff

Please sign in to comment.