mirror of
https://github.com/got-feedBack/feedBack.git
synced 2026-08-11 11:19:24 +00:00
Address review: Reset on All restores defaults verbatim
The Reset handler forced base.enabled = true after copying _ASPECT_DEFAULTS (where enabled is false) — a leftover from when enabled controlled panel visibility. Visibility is now independent (Shift+A / ×), so drop the override and let Reset restore the defaults exactly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: topkoa <topkoa@gmail.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
1434eb6342
commit
095d718b85
@@ -1987,13 +1987,13 @@
|
||||
b.addEventListener('click', fn);
|
||||
return b;
|
||||
};
|
||||
// Reset: for "All" restores the shared defaults (enabled); for a pane
|
||||
// clears that pane's override so it inherits the shared base again.
|
||||
// Reset: for "All" restores the shared defaults exactly; for a pane
|
||||
// clears that pane's override so it inherits the shared base again. Panel
|
||||
// visibility is independent (Shift+A / ×), so Reset doesn't force it open.
|
||||
btnRow.appendChild(mkBtn('Reset', () => {
|
||||
const base = _aspectTune();
|
||||
if (!_aspectEditTarget) {
|
||||
Object.keys(_ASPECT_DEFAULTS).forEach((k) => { base[k] = _ASPECT_DEFAULTS[k]; });
|
||||
base.enabled = true;
|
||||
} else if (base.__panels) {
|
||||
delete base.__panels[_aspectEditTarget];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user