Skip to content

open Preferences/Options to a given tab - #2413

Merged
joshaber merged 2 commits into
masterfrom
support-opening-given-tab
Aug 9, 2017
Merged

joshaber merged 2 commits into
masterfrom
support-opening-given-tab

Conversation

@shiftkey

@shiftkey shiftkey commented Aug 8, 2017

Copy link
Copy Markdown
Member

Splitting this off from #2407 where I have this use case:

  • user tries to open the app in an external editor
  • it's been uninstalled or the executable is missing or it errors, so 💥
  • display details about the error to the user, and suggest opening Preferences/Options to change to another editor
  • app invokes showPopup to change dialogs

With this change, I can put the user on the Advanced tab (where the setting lives) rather than leave them disoriented and not sure where to go. The default behaviour (focus on Accounts) will remain if this argument hasn't been provided.

@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Aug 8, 2017
@joshaber joshaber self-assigned this Aug 8, 2017

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems legit, just one comment bikeshedding the name 👍

Comment thread app/src/lib/app-state.ts Outdated
files: ReadonlyArray<WorkingDirectoryFileChange>
}
| { type: PopupType.Preferences }
| { type: PopupType.Preferences; initialFocusTab?: PreferencesTab }

This comment was marked as spam.

@shiftkey

shiftkey commented Aug 8, 2017

Copy link
Copy Markdown
Member Author

🍎

@shiftkey shiftkey mentioned this pull request Aug 8, 2017
22 tasks done
@joshaber

joshaber commented Aug 9, 2017

Copy link
Copy Markdown
Contributor

✨

@joshaber
joshaber merged commit aff088c into master Aug 9, 2017
@joshaber
joshaber deleted the support-opening-given-tab branch August 9, 2017 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants