Triggers Linked to a Specific App like Preview will work even after Preview App is removed from the sidebar

I wanted to adjust a trigger that I use in Preview. When I looked in BTT, Preview was not in the sidebar and the trigger was not listed under All Apps either.

I opened an export of my profile in a notepad and could see the trigger that I was using was supposed to be under the Preview App only and so I added the Preview app back and the trigger appeared.

My thought is there should be something that prevents you from removing an app or makes it so the app reappears if there are any triggers in the configuration file that require or are applied specifically to that app only.

That way you don't end up with orphaned triggers.

This one was easy to figure out because I use the heads up display when it is triggered so I searched the text file for the message that appears on my screen and also searched for Preview and could find this but if someone has a more obscure trigger that might not even be as clear what is triggering it and what it is doing and it doesn't show up in the list it could create problems.

BTW I included a piece of the config to show how it shows as being under the Preview app:

"BTTAppBundleIdentifier" : "com.apple.Preview",
"BTTAppName" : "Preview",
"BTTAppAutoInvertIcon" : 1,
"BTTAppProcessMatchMode" : 2,
"BTTAppProcessName" : "Preview",
"BTTTriggers" : [
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1751473659.494904,
"BTTTriggerType" : 0,
"BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
"BTTUUID" : "B40FDA1E-06D4-4E4A-8523-1F0CB341606F",
"BTTPredefinedActionType" : 124,
"BTTPredefinedActionName" : "Trigger Menu Bar Menu-Item",

Note:
Before bug reporting, please make sure you have tried the latest (alpha) version of BetterTouchTool and that you have already tried to restart your system :-). If you encounter a crash, please attach a crash log from the macOS Console.app from the "User Diagnostic Reports" section.


Describe the bug
A clear and concise description of what the bug is. Any bug reports that contain insults against me or my software will be deleted without warning (unfortunately this has become necessary to mention here).


Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):


Screenshots
If applicable, add screenshots to help explain your problem. (You can just paste or drag them here)


Device information:

  • Type of Mac:
  • macOS version:
  • BetterTouchTool version: (please post the exact version - not just "the latest one")

Additional information (e.g. crash logs, related issues, etc.):

if you delete an app all triggers that belong to it are also deleted. Did you maybe just hide the preset it is in?

If you have this in your export:

BTTAppBundleIdentifier" : "com.apple.Preview",
"BTTAppName" : "Preview",
"BTTAppAutoInvertIcon" : 1,
"BTTAppProcessMatchMode" : 2,
"BTTAppProcessName" : "Preview",
"BTTTriggers" : [

Preview hasn't been deleted