Importer: call showPicker only on openFiles, not at each open

This allows to open the files dialog with Ctrl+O
This commit is contained in:
Yohan Boniface 2023-12-05 12:58:00 +01:00
parent 1bfbde320c
commit c62c327878

View file

@ -117,13 +117,12 @@ L.U.Importer = L.Class.extend({
open: function () {
if (!this.container) this.build()
this.fileInput.showPicker()
this.map.ui.openPanel({ data: { html: this.container }, className: 'dark' })
},
openFiles: function () {
this.open()
this.fileInput.click()
this.fileInput.showPicker()
},
submit: function () {