sqweek / dialog

Simple cross-platform dialog API for go-lang
ISC License
516 stars 78 forks source link

Select a default location for dialog #45

Open s77rt opened 4 years ago

s77rt commented 4 years ago

Hi, thanks for your work :)

is it possible to set a default location for a dialog?

amarin commented 3 years ago

Hi!

You can set default location before invoke Browse(), f.e. :

directorySelectDialog := dialog.Directory() directorySelectDialog.SetStartDir(currentDir) ... chosenDirectory, err := directorySelectDialog.Browse()

Is this you are looking for?