1
0
Fork 0

gui.FileSelector: fix bug (initial dir parameter not working)

This commit is contained in:
Florent Rougon 2016-12-30 02:22:23 +01:00
parent edd2290d71
commit bc42bb5d55

View file

@ -556,7 +556,7 @@ var FileSelector = {
# setters only take effect after the next call to open() # setters only take effect after the next call to open()
set_title: func(title) { me._inner.title = title }, set_title: func(title) { me._inner.title = title },
set_button: func(button) { me._inner.button = button }, set_button: func(button) { me._inner.button = button },
set_directory: func(dir) { me._inner.directory = directory }, set_directory: func(dir) { me._inner.directory = dir },
set_file: func(file) { me._inner.placeholder = file }, set_file: func(file) { me._inner.placeholder = file },
set_dotfiles: func(dot) { me._inner.show_hidden = dot }, set_dotfiles: func(dot) { me._inner.show_hidden = dot },
set_pattern: func(pattern) { me._inner.pattern = (pattern == nil) ? [] : pattern }, set_pattern: func(pattern) { me._inner.pattern = (pattern == nil) ? [] : pattern },