Skip to content

Commit

Permalink
fix RIDER-85695 Unity doesn't start from the toolbar if Android plugi…
Browse files Browse the repository at this point in the history
…n is installed
  • Loading branch information
van800 committed Nov 30, 2022
1 parent c0eadd8 commit 21ac484
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AttachUnityEditorAction: DumbAwareAction() {

if (settings != null) {
ExecutionUtil.runConfiguration(settings,
Executor.EXECUTOR_EXTENSION_NAME.extensionList.single { it is DefaultDebugExecutor })
Executor.EXECUTOR_EXTENSION_NAME.extensionList.single { it is DefaultDebugExecutor && it.id == DefaultDebugExecutor.EXECUTOR_ID })
} else {
logger.warn("Have not found run-configuration ${DefaultRunConfigurationGenerator.ATTACH_CONFIGURATION_NAME}.")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ open class StartUnityAction : DumbAwareAction() {
runManager.findConfigurationByTypeAndName(UnityExeConfigurationType.id, DefaultRunConfigurationGenerator.RUN_DEBUG_START_UNITY_CONFIGURATION_NAME)

if (settings?.configuration != null && ExecutionTargetManager.getInstance(project).getTargetsFor(settings.configuration).isEmpty()){
ExecutionUtil.runConfiguration(settings, Executor.EXECUTOR_EXTENSION_NAME.extensionList.single {it is DefaultRunExecutor })
ExecutionUtil.runConfiguration(settings, Executor.EXECUTOR_EXTENSION_NAME.extensionList.single {it is DefaultRunExecutor && it.id == DefaultRunExecutor.EXECUTOR_ID})
}
else {
logger.warn("UnityExeConfiguration ${DefaultRunConfigurationGenerator.RUN_DEBUG_START_UNITY_CONFIGURATION_NAME} was not found.")
Expand Down

0 comments on commit 21ac484

Please sign in to comment.