mirror of
https://github.com/gotson/komga.git
synced 2025-12-27 19:04:28 +01:00
style: ktlint format
This commit is contained in:
parent
e2eff20f6f
commit
92fce543d6
1 changed files with 8 additions and 8 deletions
|
|
@ -16,9 +16,9 @@ import org.springframework.stereotype.Component
|
|||
@Profile("!test")
|
||||
@Component
|
||||
class TrayIconRunner(
|
||||
@Value("#{servletContext.contextPath}") servletContextPath: String,
|
||||
@Value("\${server.port}") serverPort: Int,
|
||||
env: Environment,
|
||||
@Value("#{servletContext.contextPath}") servletContextPath: String,
|
||||
@Value("\${server.port}") serverPort: Int,
|
||||
env: Environment,
|
||||
) : ApplicationRunner {
|
||||
|
||||
val komgaUrl = "http://localhost:$serverPort$servletContextPath"
|
||||
|
|
@ -30,11 +30,11 @@ class TrayIconRunner(
|
|||
private fun runTray() {
|
||||
application {
|
||||
Tray(
|
||||
icon = loadSvgPainter(ClassPathResource("icons/$iconFileName").inputStream, LocalDensity.current),
|
||||
menu = {
|
||||
Item("Open Komga", onClick = { openUrl(komgaUrl) })
|
||||
Item("Quit Komga", onClick = ::exitApplication)
|
||||
},
|
||||
icon = loadSvgPainter(ClassPathResource("icons/$iconFileName").inputStream, LocalDensity.current),
|
||||
menu = {
|
||||
Item("Open Komga", onClick = { openUrl(komgaUrl) })
|
||||
Item("Quit Komga", onClick = ::exitApplication)
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue