@sequent-org/moodboard 1.2.66 → 1.2.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -232,6 +232,9 @@ export class MoodBoard {
|
|
|
232
232
|
// Смена фона доски по выбору цвета в топбаре
|
|
233
233
|
this.coreMoodboard.eventBus.on(Events.UI.PaintPick, ({ color }) => {
|
|
234
234
|
if (!color) return;
|
|
235
|
+
try {
|
|
236
|
+
console.log('[MB] PaintPick handler: received color', color, 'settingsApplier?', !!this.settingsApplier);
|
|
237
|
+
} catch (_) {}
|
|
235
238
|
// Централизованное применение через SettingsApplier,
|
|
236
239
|
// чтобы гарантировать эмит события для автосохранения
|
|
237
240
|
if (this.settingsApplier && typeof this.settingsApplier.set === 'function') {
|
|
@@ -14,6 +14,7 @@ export class SettingsApplier {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
set(partial) {
|
|
17
|
+
try { console.log('[SA] set()', partial); } catch (_) {}
|
|
17
18
|
this.settings = { ...this.settings, ...(partial || {}) };
|
|
18
19
|
this.apply(this.settings);
|
|
19
20
|
// Сообщаем системе об изменении настроек для автосохранения
|