Fixed Chrome showing empty 'Settings' UI section.

This commit is contained in:
Marat Fayzullin 2024-09-14 11:56:58 -04:00
parent a08a550c8e
commit a3f6eef52b
3 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,7 @@
- Added [ALT]+[UP]/[DOWN] for volume control on MacOS. - Added [ALT]+[UP]/[DOWN] for volume control on MacOS.
- Fixed an exception when any of the markers fail to load. - Fixed an exception when any of the markers fail to load.
- Fixed call arrows remaining after locator display disabled. - Fixed call arrows remaining after locator display disabled.
- Fixed Chrome showing empty "Settings" UI section.
- Blocked keyboard shortcuts until settings are loaded. - Blocked keyboard shortcuts until settings are loaded.
- Sorted digital modes inside combo box (by Richard Murnane). - Sorted digital modes inside combo box (by Richard Murnane).

1
debian/changelog vendored
View File

@ -3,6 +3,7 @@ openwebrx (1.2.69) bullseye jammy; urgency=low
* Added [ALT]+[UP]/[DOWN] for volume control on MacOS. * Added [ALT]+[UP]/[DOWN] for volume control on MacOS.
* Fixed an exception when any of the markers fail to load. * Fixed an exception when any of the markers fail to load.
* Fixed call arrows remaining after locator display disabled. * Fixed call arrows remaining after locator display disabled.
* Fixed Chrome showing empty "Settings" UI section.
* Blocked keyboard shortcuts until settings are loaded. * Blocked keyboard shortcuts until settings are loaded.
* Sorted digital modes inside combo box (by Richard Murnane). * Sorted digital modes inside combo box (by Richard Murnane).

View File

@ -179,6 +179,10 @@ UI.toggleSection = function(el, on) {
if ((next_el.classList.contains('closed')) && (toggle || on)) { if ((next_el.classList.contains('closed')) && (toggle || on)) {
el.innerHTML = el.innerHTML.replace('\u25B4', '\u25BE'); el.innerHTML = el.innerHTML.replace('\u25B4', '\u25BE');
next_el.classList.remove('closed'); next_el.classList.remove('closed');
// Force a redraw in Chrome to avoid blank UI when
// opening a section that was closed to begin with
next_el.style.display = 'none';
next_el.style.display = 'block';
LS.save(el.id, true); LS.save(el.id, true);
} else if (toggle || !on) { } else if (toggle || !on) {
el.innerHTML = el.innerHTML.replace('\u25BE', '\u25B4'); el.innerHTML = el.innerHTML.replace('\u25BE', '\u25B4');