Skip to content

Commit

Permalink
fix(settings): fix regression with folder selection #101
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Nov 5, 2019
1 parent ec65bf4 commit b11388a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/config-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default class ConfigPage extends Page {
<RaisedButton style={{marginLeft: 20}} label={__('Browse')} primary={true} onClick={() => {
if(!dialog)
return
const dir = dialog.showOpenDialog({properties: ['openDirectory']})[0]
const dir = dialog.showOpenDialogSync({properties: ['openDirectory']})[0]
if(dir)
{
this.options.dbPath = dir
Expand All @@ -167,7 +167,7 @@ export default class ConfigPage extends Page {
<RaisedButton style={{marginLeft: 20}} label={__('Browse')} primary={true} onClick={() => {
if(!dialog)
return
const dir = dialog.showOpenDialog({properties: ['openDirectory']})[0]
const dir = dialog.showOpenDialogSync({properties: ['openDirectory']})[0]
if(dir)
{
this.options.client.downloadPath = dir
Expand Down

0 comments on commit b11388a

Please sign in to comment.