v79
08/20/2023, 4:29 PMmain.desktop.kt
from fun MainView() = App()
to something like:
fun MainView() = application {
Window(
onCloseRequest = ::exitApplication,
title = "Corbel",
state = rememberWindowState(width = 640.dp, height = 480.dp)
) {
DesktopApp()
}
}
No window appears when I run it though. Am I wrong to try to use the application { Window(...)...}
code approach that is in the compose multiplatform desktop template in a mixed Android/Desktop project? Without `application { Window... }`I don't even know how to give the window a title!Pablichjenkov
08/20/2023, 6:26 PMfun main() = application { ... }
If you removed fun main()
accidentally might be the problem.v79
08/20/2023, 6:31 PMmain()
in the example code here https://github.com/JetBrains/compose-multiplatform-template/blob/main/shared/src/desktopMain/kotlin/main.desktop.ktv79
08/20/2023, 6:34 PMv79
08/20/2023, 6:34 PMv79
08/20/2023, 6:35 PMPablichjenkov
08/20/2023, 6:50 PMv79
08/20/2023, 6:52 PMapplication {...}
but I haven't tested it yet. I stopped for dinner.