fix #1655: selecting downloaded favicon automatically

This commit is contained in:
antelle 2020-12-19 16:29:19 +01:00
parent c24fe2806c
commit ddd242b9df
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ class IconSelectView extends View {
.addClass('icon-select__icon--custom-selected')
.append(img);
this.downloadingFavicon = false;
const id = this.model.file.addCustomIcon(this.special.download.data);
this.emit('select', { id, custom: true });
};
img.onerror = (e) => {
logger.error('Favicon download error: ' + url, e);