File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/explorer Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,21 @@ import com.jetbrains.rider.projectView.workspace.ProjectModelEntity
9
9
10
10
class UnitySolutionExplorerCustomization (project : Project ) : SolutionExplorerCustomization(project) {
11
11
override fun supportReferenceModifications (projectEntity : ProjectModelEntity ): Boolean {
12
- if (UnityUIManager .getInstance(project).hasMinimizedUi.hasTrueValue() && project.isUnityGeneratedProject())
13
- return false
12
+ if (isUnityGeneratedAndMinimizedUI()) return false
14
13
return super .supportReferenceModifications(projectEntity)
15
14
}
15
+
16
+ override fun supportSolutionModifications (): Boolean {
17
+ if (isUnityGeneratedAndMinimizedUI()) return false
18
+ return super .supportSolutionModifications()
19
+ }
20
+
21
+ override fun supportNugetModifications (): Boolean {
22
+ if (isUnityGeneratedAndMinimizedUI()) return false
23
+ return super .supportNugetModifications()
24
+ }
25
+
26
+ private fun isUnityGeneratedAndMinimizedUI (): Boolean {
27
+ return UnityUIManager .getInstance(project).hasMinimizedUi.hasTrueValue() && project.isUnityGeneratedProject()
28
+ }
16
29
}
You can’t perform that action at this time.
0 commit comments