Skip to content

Commit 5ecd5ee

Browse files
authored
Merge pull request #73 from skydoves/feature/settings-icon
Add a settings icon on the Window Tools
2 parents 86ef5cb + a3a5be9 commit 5ecd5ee

File tree

1 file changed

+15
-0
lines changed
  • compose-stability-analyzer-idea/src/main/kotlin/com/skydoves/compose/stability/idea/toolwindow

1 file changed

+15
-0
lines changed

compose-stability-analyzer-idea/src/main/kotlin/com/skydoves/compose/stability/idea/toolwindow/StabilityToolWindow.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public class StabilityToolWindow(private val project: Project) {
140140
actionGroup.add(FilterSkippableAction())
141141
actionGroup.add(FilterUnskippableAction())
142142
actionGroup.addSeparator()
143+
actionGroup.add(SettingsAction())
143144
actionGroup.add(GitHubAction())
144145

145146
val toolbar = ActionManager.getInstance()
@@ -508,6 +509,20 @@ public class StabilityToolWindow(private val project: Project) {
508509
}
509510
}
510511

512+
/**
513+
* Settings action
514+
*/
515+
private inner class SettingsAction : AnAction(
516+
"Settings",
517+
"Open Compose Stability Analyzer settings",
518+
AllIcons.General.Settings,
519+
) {
520+
override fun actionPerformed(e: AnActionEvent) {
521+
com.intellij.openapi.options.ShowSettingsUtil.getInstance()
522+
.showSettingsDialog(project, "Compose Stability Analyzer")
523+
}
524+
}
525+
511526
/**
512527
* GitHub link action
513528
*/

0 commit comments

Comments
 (0)