From 0b9c78a44dfb65e42dd51a9d67192b7bb5954f63 Mon Sep 17 00:00:00 2001 From: death-claw <53543762+death-claw@users.noreply.github.com> Date: Thu, 22 Feb 2024 23:54:57 +0100 Subject: [PATCH] bug fix --- .../src/main/kotlin/me/vripper/services/SettingsService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) } }