mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
Adds a quick toolbar option for opening preferences
This commit is contained in:
parent
04c79c36ad
commit
86bbd9451c
1 changed files with 7 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ struct MainToolbarModifier: ViewModifier {
|
|||
Button(action: { appState.presentedSheet = .signIn }, label: {
|
||||
Label("Login", systemImage: "person.circle")
|
||||
})
|
||||
.help("Login")
|
||||
.help("Open Login")
|
||||
|
||||
ProgressButton(
|
||||
isInProgress: appState.isUpdating,
|
||||
|
|
@ -26,7 +26,7 @@ struct MainToolbarModifier: ViewModifier {
|
|||
Label("Refresh", systemImage: "arrow.clockwise")
|
||||
}
|
||||
.keyboardShortcut(KeyEquivalent("r"))
|
||||
.help("Refresh")
|
||||
.help("Refresh Xcode List")
|
||||
|
||||
Button(action: {
|
||||
switch category {
|
||||
|
|
@ -86,6 +86,11 @@ struct MainToolbarModifier: ViewModifier {
|
|||
.keyboardShortcut(KeyboardShortcut("i", modifiers: [.command, .option]))
|
||||
.help("Show or hide the info pane")
|
||||
|
||||
Button(action: { NSApp.sendAction(Selector(("showPreferencesWindow:")), to: nil, from: nil) }, label: {
|
||||
Label("Preferences", systemImage: "gearshape")
|
||||
})
|
||||
.help("Open Preferences")
|
||||
|
||||
TextField("Search...", text: $searchText)
|
||||
.textFieldStyle(RoundedBorderTextFieldStyle())
|
||||
.frame(width: 200)
|
||||
|
|
|
|||
Loading…
Reference in a new issue