Skip to content

Add ability for shortcut action to be disabled instead of removed when unregistering #88

@Yoooi0

Description

@Yoooi0

So that we can register/unregister actions dynamically without loosing configured actions in bindings.
Somehow need to be able to differentiate deprecated vs dynamic actions. Deprecate via migrations?

public void UnregisterAction(IShortcutActionDescriptor actionDescriptor)
{
AvailableActions.Remove(actionDescriptor);
_actionBuilders.Remove(actionDescriptor);
foreach (var (gesture, assignedActions) in Bindings)
foreach (var action in assignedActions.Where(a => actionDescriptor.Equals(a.Descriptor)).ToList())
assignedActions.Remove(action);
}

Also plugin registered actions will be lost each restart.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions