Skip to content

Commit

Permalink
Documentation for Branch dropdown dispatchers
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroso committed Jan 28, 2024
1 parent d03d938 commit b554ec1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/src/ui/dispatcher/dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -953,10 +953,19 @@ export class Dispatcher {
return this.appStore._setSidebarWidth(width)
}

/**
* Set the width of the Branch toolbar button to the given value.
* This affects the toolbar button and its dropdown element.
*
* @param width The value for the width of Branch button
*/
public setBranchDropdownWidth(width: number): Promise<void> {
return this.appStore._setBranchDropdownWidth(width)
}

/**
* Reset the width of the Branch toolbar button to its default value.
*/
public resetBranchDropdownWidth(): Promise<void> {
return this.appStore._resetBranchDropdownWidth()
}
Expand Down

0 comments on commit b554ec1

Please sign in to comment.