openrndr / org.openrndr.dialogs / setDefaultPathForContext

setDefaultPathForContext

fun setDefaultPathForContext(programName: String = stackRootClassName(), contextID: String = "global", file: File): Unit (source)

Set the default path for a context This is an internal function but it can be used to set a default path before calling any of the file dialog functions

Parameters

programName - optional name of the program, default is guessed from a stack trace on the current thread

contextID - optional context identifier, the default is "global"

file - the path to set as a default

See Also

getDefaultPathForContext

Since
0.3.40