Skip to main content
johnrellis
Legend
January 23, 2025

P: Filter presets are not always correctly restored when toggling Enable Filters

  • January 23, 2025
  • 2 replies
  • 977 views

If you select a Library Filter bar preset, toggle off filtering with Cmd L, and toggle it back on, sometimes the previous state of the filter bar set by the preset is not properly restored. The conditions that trigger this are very obscure but highly reproducible.  To the average user, it looks entirely mysterious.

 

To avoid this bug, use these precise steps:

 

- Select any Library Filter bar preset (don't skip this step).

- Select the preset Filters Off.

- Define the preset.

 

Tested on a virgin installation of LR 14.1.1 on a virgin installation of Mac OS 15 (a virtual machine) -- screen recording attached. Follow these precise steps:

 

1. Import a JPEG.

 

2. In the Library Filter bar, click the preset popup and select the Camera Info preset.

 

3. In the Metadata browser, change the first column to File Type and select JPEG. Delete the other columns. Save as the preset "JPEG - Camera Info".

 

4. In the Library Filter bar preset popup, select Filters Off.

 

5. In the Library Filter bar, click the Metadata button.

 

6. In the Metadata browser, change the first column to File Type and select JPEG. Delete the other columns. Save as the preset "JPEG - Metadata".

 

7. In the Library Filter bar preset popup, select Filters Off.

 

8. Select the filter preset JPEG - Camera Info.

 

9. Type Cmd L (filters off) and again Cmd L (filters on).  Observe that the Library Filter bar's Attribute bar is now showing, with >= 1 star selected, and the name in the preset popup is Rated. This is incorrect:

 

10. Repeat steps 7 - 9, but with the preset JPEG - Metadata. Observe the the Library Filter bar's Attribute bar is not showing, and the preset popup shows JPEG - Metadata. This is correct.

 

It's completely mysterious to the typical user why these two versions of the preset behave differently when you disable and enable filters.  There are three related causes of this bug:

 

- Saving a preset with the Attribute button deselected nevertheless saves in the preset the hidden previous star rating. In particular, the preset JPEG - Camera Info was saved with these two lines in the .lrtemplate:

 

 

filtersActive = false,
minRating = 1,

 

 

The second line should have been:

 

 

minRating = "<nil>",

 

 

 

- When "minRating" is something other than "<nil>", the command FIle > Library Filters > Enable Filters (Cmd L) always sets "filterActive" to true, even if the previous state was false.

 

- The built-in preset Camera Info also contains these two lines:

 

 

filtersActive = false,
minRating = 1,

 

 

probably because the original developer had saved it after saving the Rating preset.

 

2 replies

Rikk Flohr_Photography
Community Manager
January 29, 2025

Thanks for the details, @johnrellis. I've sent a ticket to the LrC Team. 

 

Rikk Flohr: Adobe Photography Org
Known Participant
January 23, 2025

This started happening a few months ago, and I’m not sure why the behavior has changed or what I did to change the behavior?

 

When you were culling images and you have a custom filter applied, if you remove the custom filter (cmd / ctl + L) and then reapply the filter (cmd / ctl + L)  instead of going back to the previous custom filter preset that you were working with it goes to a blank custom filter.

 

How do you get it to go back to the previous filter preset that you were using? This has been the way that it has worked from almost the beginning of time and I’m not exactly sure what I did to screw it up.

 

Thanks in advance – CES

 

 

GoldingD
Legend
January 23, 2025

In the third screenshot, I notice that both Attribute and Metadata are apparently selected/highlighted

Known Participant
January 23, 2025

It' just what LR applies when you try to reapply the filter... It doesn't go back to the previous filter that was used which was the way it use to be. At some point the behavior changed.