fix: remember the award sort, and the grey line, across restarts
The sort choice is now written through writeUiPref and both keys are registered as portable, so they travel with a copied data/ folder like every other UI preference. Registering them is the part that matters: writeUiPref stores to the DB, but only keys on the portable list are read BACK at startup. A key written and never restored looks exactly like one that was never saved — which is what would have happened here. The grey-line toggle had the same gap. It called writeUiPref from the day it was written but was never added to the list, so it came back off on the next launch. Found while adding the award keys beside it.
This commit is contained in:
@@ -28,6 +28,8 @@ const PORTABLE_KEYS = [
|
||||
'opslog.groupDigitalSlots', // matrix + cluster: all digital modes count as ONE (DXCC-style) instead of per-mode slots
|
||||
'opslog.clusterShowFilters', // cluster filter sidebar shown (tab + Main pane)
|
||||
'opslog.mapBasemap', // world map basemap (light / street / satellite)
|
||||
'opslog.mapGreyline', // world map: grey line (day/night terminator) shown
|
||||
'opslog.awardRefSort', 'opslog.awardRefSortDir', // award reference table: sort column and direction
|
||||
// Cluster filter selections — restored on reopen.
|
||||
'opslog.clusterFilterSource', 'opslog.clusterGroup', 'opslog.clusterBands',
|
||||
'opslog.clusterLockBand', 'opslog.clusterLockMode', 'opslog.clusterStatusFilter',
|
||||
|
||||
Reference in New Issue
Block a user