Show or hide thumbnail when the option is changed.

This commit is contained in:
j433866 2019-07-03 11:41:22 +01:00
parent cf500b7296
commit 4312d39624
2 changed files with 31 additions and 17 deletions

View file

@ -231,6 +231,7 @@ class Manager {
this.addDynamicListener(".option-item select", "change", this.options.selectChange, this.options);
document.getElementById("theme").addEventListener("change", this.options.themeChange.bind(this.options));
document.getElementById("logLevel").addEventListener("change", this.options.logLevelChange.bind(this.options));
document.getElementById("imagePreview").addEventListener("change", this.input.renderFileThumb.bind(this.input));
// Misc
window.addEventListener("keydown", this.bindings.parseInput.bind(this.bindings));