We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e7cce9 commit 27c22a4Copy full SHA for 27c22a4
1 file changed
browser/main/modal/NewRepositoryModal.js
@@ -10,7 +10,7 @@ const remote = electron.remote
10
function browseFolder () {
11
let dialog = remote.dialog
12
13
- let defaultPath = remote.app.getHomeDir()
+ let defaultPath = remote.app.getPath('home')
14
return new Promise((resolve, reject) => {
15
dialog.showOpenDialog({
16
title: 'Select Directory',
@@ -36,6 +36,10 @@ class NewRepositoryModal extends React.Component {
36
}
37
38
39
+ componentDidMount () {
40
+ this.refs.nameInput.focus()
41
+ }
42
+
43
handleCloseButtonClick (e) {
44
this.props.close()
45
0 commit comments