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:
parent
2a53a1739c
commit
d49e316676
@ -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
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user