Presets: fix border of the preset title in the detailed dialog

10.8-maintenance
Ivan Efimov 2021-11-27 01:11:19 -06:00
parent 7040a5b390
commit bf422146f5
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,7 @@ class PresetTitlePanel
this._onLoadedCallback = onLoadedCallback; this._onLoadedCallback = onLoadedCallback;
this._domId = `preset_title_panel_${PresetTitlePanel.s_panelCounter}`; this._domId = `preset_title_panel_${PresetTitlePanel.s_panelCounter}`;
this._preset = preset; this._preset = preset;
this._clickable = clickable;
this._parentDiv.append(`<div class="${this._domId}"></div>`); this._parentDiv.append(`<div class="${this._domId}"></div>`);
this._domWrapperDiv = $(`.${this._domId}`); this._domWrapperDiv = $(`.${this._domId}`);
@ -41,6 +42,10 @@ class PresetTitlePanel
} }
setPicked(isPicked) { setPicked(isPicked) {
if (!this._clickable) {
return;
}
this._preset.isPicked = isPicked; this._preset.isPicked = isPicked;
if (isPicked) { if (isPicked) {