Allow customizing the window title with an environment variable

This allows me to configure `title=GitnuroDEV` in my IDE's run config for the app, to distinguish the dev version that I'm running to test it from the prod version I'm running to stage/commit stuff.
This commit is contained in:
Philipp Keck 2023-02-05 22:07:42 +01:00
parent 2a53a1739c
commit d49e316676

View File

@ -100,7 +100,7 @@ class App {
if (isOpen) { if (isOpen) {
Window( Window(
title = AppConstants.APP_NAME, title = System.getenv("title") ?: AppConstants.APP_NAME,
onCloseRequest = { onCloseRequest = {
isOpen = false isOpen = false
}, },