mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
fix(satellites): a hidden class takes the ISS ring, label and docked names
Class toggles only hid points: with Stations off the ISS's orbit ring and its label still drew, and each catalog refresh showed the ring again. The ring and label now follow the ISS's class, and the tracked card no longer names a docked companion whose class is hidden. A failed Starlink load reverted to the core catalog without applying class visibility again, so the core catalog's own Starlink points stayed on while the chip, legend and lists said Starlink was off, and classes.starlink kept reading true. Both are put right on failure.
This commit is contained in:
1 parent
8bd16b0be9
commit
b59eb8b18c
5 files changed
+105
-7
No files matched your search
@@ -209,6 +209,14 @@ export function createCatalog({ state: layerState, services, parts, source }) {
|
||||
if (token !== layerState._denseLoadToken) return;
|
||||
layerState._params.catalog = 'core';
|
||||
_removeDenseCatalog();
|
||||
// Back on core, Starlink is off: hide the core catalog's own Starlink
|
||||
// points again, and say so in the class choice.
|
||||
if (layerState._params.classes)
|
||||
layerState._params.classes = {
|
||||
...layerState._params.classes,
|
||||
starlink: false,
|
||||
};
|
||||
parts.controls._applyClassVisibility?.();
|
||||
layerState._denseStatus = 'failed';
|
||||
layerState._denseError = reason;
|
||||
parts.controls._notifyRowControls();
|
||||
|
||||
Reference in new issue
Block a user