Skip to content

Commit

Permalink
Ensure shortcuts are categorised correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
FWDekker committed Nov 17, 2023
1 parent 03d4e41 commit 177c22c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.fwdekker.randomness.template
import com.fwdekker.randomness.Settings
import com.intellij.openapi.actionSystem.ActionManager
import com.intellij.openapi.actionSystem.impl.DynamicActionConfigurationCustomizer
import com.intellij.openapi.extensions.PluginId


/**
Expand Down Expand Up @@ -61,7 +62,7 @@ open class TemplateActionLoader(
private fun registerAction(actionManager: ActionManager, template: Template) =
getActions(template).forEach { (actionId, action) ->
if (actionManager.getAction(actionId) == null)
actionManager.registerAction(actionId, action)
actionManager.registerAction(actionId, action, PluginId.getId("com.fwdekker.randomness"))
else
actionManager.replaceAction(actionId, action)
}
Expand Down

0 comments on commit 177c22c

Please sign in to comment.