Skip to content

Commit

Permalink
Alphabetize the title bar branch menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Uncommon committed Nov 22, 2019
1 parent 7864deb commit 968fee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xit/Document/TitleBarViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class TitleBarViewController: NSViewController
func updateBranchList(_ branches: [String], current: String?)
{
branchPopup.removeAllItems()
branchPopup.addItems(withTitles: branches)
branchPopup.addItems(withTitles: branches.sorted())
if let current = current {
selectedBranch = current
}
Expand Down

0 comments on commit 968fee1

Please sign in to comment.