X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FFirstStartHandler.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FFirstStartHandler.kt;h=aceda7e8bfc500da3ea9b6261273ee37d004ad87;hb=8bd33b61d226641aad09285e97c156d4d6e25aed;hp=c69884623b5ccce47554f3a87447b7b0eb6be585;hpb=1b4f8c0f65eb4db3831585743b326d2588b36cef;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/notification/FirstStartHandler.kt b/src/main/kotlin/net/pterodactylus/sone/web/notification/FirstStartHandler.kt index c698846..aceda7e 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/FirstStartHandler.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/FirstStartHandler.kt @@ -20,11 +20,12 @@ package net.pterodactylus.sone.web.notification import com.google.common.eventbus.* import net.pterodactylus.sone.core.event.* import net.pterodactylus.util.notify.* +import javax.inject.* /** * Handles the notification shown on first start of Sone. */ -class FirstStartHandler(private val notificationManager: NotificationManager, private val notification: TemplateNotification) { +class FirstStartHandler @Inject constructor(private val notificationManager: NotificationManager, @Named("firstStart") private val notification: TemplateNotification) { @Subscribe fun firstStart(firstStart: FirstStart) {