Skip to content

Commit b112cb7

Browse files
committed
Defer instantiation of PebbleSettingsForm (should fix #184)
1 parent f21055d commit b112cb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/com/github/bjansen/intellij/pebble/config/PebbleProjectSettings.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import com.intellij.openapi.project.Project
77

88
class PebbleProjectSettings(private val project: Project) : SearchableConfigurable, Disposable {
99

10-
private val form = PebbleSettingsForm(project)
10+
private val form: PebbleSettingsForm by lazy {
11+
PebbleSettingsForm(project)
12+
}
1113

1214
override fun isModified(): Boolean {
1315
val config = PropertiesComponent.getInstance(project)

0 commit comments

Comments
 (0)