fix(settings): fix regression with folder selection #101
This commit is contained in:
parent
bbc68d73f4
commit
40e7aaa2db
@ -142,7 +142,7 @@ export default class ConfigPage extends Page {
|
|||||||
<RaisedButton style={{marginLeft: 20}} label={__('Browse')} primary={true} onClick={() => {
|
<RaisedButton style={{marginLeft: 20}} label={__('Browse')} primary={true} onClick={() => {
|
||||||
if(!dialog)
|
if(!dialog)
|
||||||
return
|
return
|
||||||
const dir = dialog.showOpenDialog({properties: ['openDirectory']})[0]
|
const dir = dialog.showOpenDialogSync({properties: ['openDirectory']})[0]
|
||||||
if(dir)
|
if(dir)
|
||||||
{
|
{
|
||||||
this.options.dbPath = dir
|
this.options.dbPath = dir
|
||||||
@ -167,7 +167,7 @@ export default class ConfigPage extends Page {
|
|||||||
<RaisedButton style={{marginLeft: 20}} label={__('Browse')} primary={true} onClick={() => {
|
<RaisedButton style={{marginLeft: 20}} label={__('Browse')} primary={true} onClick={() => {
|
||||||
if(!dialog)
|
if(!dialog)
|
||||||
return
|
return
|
||||||
const dir = dialog.showOpenDialog({properties: ['openDirectory']})[0]
|
const dir = dialog.showOpenDialogSync({properties: ['openDirectory']})[0]
|
||||||
if(dir)
|
if(dir)
|
||||||
{
|
{
|
||||||
this.options.client.downloadPath = dir
|
this.options.client.downloadPath = dir
|
||||||
|
Loading…
Reference in New Issue
Block a user