ui: avoid potentially showing 'Set Custom Project Icon' in confusing contexts

Do not rely on 'Project' missing in the DataContext of a 'Manage Projects' popup.

GitOrigin-RevId: 6d1626afea4cc488df6477ba5ea300cdb6485c44
This commit is contained in:
Aleksey Pivovarov
2025-04-16 12:11:33 +00:00
committed by intellij-monorepo-bot
parent dedef74304
commit d7622fcd9d
@@ -102,7 +102,7 @@ internal class ChangeProjectIconAction : RecentProjectsWelcomeScreenActionBase()
if (selectedItem is RecentProjectItem) {
return selectedItem.projectPath
}
if (project != null) {
if (project != null && selectedItem == null) {
return ProjectWindowCustomizerService.projectPath(project)
}
return null