Skip to content

Commit

Permalink
Fix "PanguFormatSettingsState it is a service, use getService instead…
Browse files Browse the repository at this point in the history
… of getComponent"
  • Loading branch information
LiLittleCat committed Aug 12, 2022
1 parent 92f59ae commit 0b829a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ pluginVersion = 1.0.0

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild = 192
pluginSinceBuild = 193.5233.102
pluginUntilBuild = 222.*

# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType = IC
platformVersion = 2019.2
platformVersion = 193.5233.102

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void loadState(@NotNull PanguFormatSettingsState state) {
}

public static PanguFormatSettingsState getInstance() {
return ApplicationManager.getApplication().getComponent(PanguFormatSettingsState.class);
return ApplicationManager.getApplication().getService(PanguFormatSettingsState.class);
}

}

0 comments on commit 0b829a5

Please sign in to comment.