Skip to content

Commit

Permalink
Importer: call showPicker only on openFiles, not at each open
Browse files Browse the repository at this point in the history
This allows to open the files dialog with Ctrl+O
  • Loading branch information
yohanboniface committed Dec 5, 2023
1 parent 1bfbde3 commit c62c327
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions umap/static/umap/js/umap.importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit c62c327

Please sign in to comment.