File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed
src/main/kotlin/uk/co/ben_gibson/git/link/ui/actions Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 3
3
# GitLink Changelog
4
4
5
5
## Unreleased
6
+ - Fix menu text crash on 2022.3 when no host is detected
6
7
7
8
## 4.3.0 - 2022-12-11
8
9
- Add basic copy Markdown action
Original file line number Diff line number Diff line change 4
4
[ ![ Version] ( https://img.shields.io/jetbrains/plugin/v/8183-gitlink.svg )] ( https://plugins.jetbrains.com/plugin/8183-gitlink )
5
5
[ ![ Rating] ( https://img.shields.io/jetbrains/plugin/r/stars/8183-gitlink.svg )] ( https://plugins.jetbrains.com/plugin/8183-gitlink )
6
6
[ ![ Downloads] ( https://img.shields.io/jetbrains/plugin/d/8183-gitlink.svg )] ( https://plugins.jetbrains.com/plugin/8183-gitlink )
7
- [ ![ Backers] ( https://opencollective.com/gitlink/tiers/backer/badge.svg?label=backer&color=brightgreen )] ( https://opencollective.com/gitlink )
8
- [ ![ Sponsors] ( https://opencollective.com/gitlink/tiers/sponsor/badge.svg?label=sponsor&color=brightgreen )] ( https://opencollective.com/gitlink )
7
+ [ ![ Donations] ( https://opencollective.com/gitlink/tiers/badge.svg?label=sponsor&color=brightgreen )] ( https://opencollective.com/gitlink )
9
8
[ ![ Stand With Ukraine] ( https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg )] ( https://stand-with-ukraine.pp.ua )
10
9
11
10
<!-- Plugin description -->
Original file line number Diff line number Diff line change 4
4
pluginGroup = uk.co.ben_gibson.git.link
5
5
pluginName = GitLink
6
6
# SemVer format -> https://semver.org
7
- pluginVersion = 4.3.0
7
+ pluginVersion = 4.3.1
8
8
9
9
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
10
10
# for insight into build numbers and IntelliJ Platform versions.
Original file line number Diff line number Diff line change @@ -44,12 +44,15 @@ abstract class Action(private val type: Type): DumbAwareAction() {
44
44
45
45
val host = project.service<PlatformLocator >().locate()
46
46
47
+ if (host == null ) {
48
+ event.presentation.isEnabledAndVisible = false
49
+ return ;
50
+ }
51
+
47
52
event.presentation.isEnabled = shouldBeEnabled(event)
48
53
49
- host?.let {
50
- event.presentation.icon = it.icon
51
- event.presentation.text = GitLinkBundle .message(" actions.${type.key} .title" , it.name)
52
- }
54
+ event.presentation.icon = host.icon
55
+ event.presentation.text = GitLinkBundle .message(" actions.${type.key} .title" , host.name)
53
56
}
54
57
55
58
override fun getActionUpdateThread (): ActionUpdateThread {
You can’t perform that action at this time.
0 commit comments