diff --git a/vripper-core/src/main/kotlin/me/vripper/services/SettingsService.kt b/vripper-core/src/main/kotlin/me/vripper/services/SettingsService.kt index de0e27a2..9d9c42a6 100644 --- a/vripper-core/src/main/kotlin/me/vripper/services/SettingsService.kt +++ b/vripper-core/src/main/kotlin/me/vripper/services/SettingsService.kt @@ -99,7 +99,7 @@ class SettingsService(private val eventBus: EventBus) { this.settings = settings.copy(viperSettings = viperSettings) save() coroutineScope.launch { - eventBus.publishEvent(SettingsUpdateEvent(settings)) + eventBus.publishEvent(SettingsUpdateEvent(this@SettingsService.settings)) } }