Kirill Grouchnikov
12/09/2020, 6:09 AMtieskedh
12/14/2020, 8:34 AMKirill Grouchnikov
12/16/2020, 2:50 PM0.3.0-build135
requires Kotlin 1.4.21
xetra11
12/23/2020, 8:21 PMolonho
12/25/2020, 10:35 AM0.0.0-unmerged-build21
we implemented two way interop between Swing and Compose components. See https://github.com/JetBrains/compose-jb/pull/213 for explanation how to use it. Official build with this feature will hopefully appears pretty soon.Dominaezzz
12/25/2020, 6:34 PMxetra11
12/28/2020, 7:11 PMonAppExit
So when shutting down I'd like to run logic to check if the current work project is saved. The typical "Do you wanna save your work before quit?".
private fun initializeEvents() {
AppManager.setEvents(
onAppExit = {
AppShutdownService().shutdown()
}
)
}
This is my code for that. AppShutdownService
actually calls a JFileChooser window if the user has not saved his/her project. The problem is that this does not mix well with the Runtime.shutdownHook cause it's bringing up a dialog etc.
Long story short - the whole thing does not work out. I am somewhat looking for a hook that runs BEFORE the actual exit occurs (if the user presses the X button)Thomas
12/29/2020, 11:23 AMxetra11
12/31/2020, 12:48 PMxetra11
12/31/2020, 1:37 PMhttps://s2.gifyu.com/images/character_designer_v2.gif▾
Kirill Grouchnikov
01/01/2021, 7:12 PMKirill Grouchnikov
01/01/2021, 7:20 PMKirill Grouchnikov
01/03/2021, 4:58 AMnfrankel
01/04/2021, 2:17 AMval path = remember { mutableStateOf(System.getProperty("user.home")) }
val pattern = remember { mutableStateOf("") }
val replacement = remember { mutableStateOf("") }
val files = remember { mutableStateListOf<File>() }
nfrankel
01/04/2021, 2:39 AM@Preview
but i don’t find it on my classpathSuser
01/04/2021, 2:40 AMjim
01/04/2021, 8:25 AM@Preview
isn't supported yet, but it's something that is intended to be supported at some point in the future.nfrankel
01/04/2021, 8:33 AMTimo Drick
01/05/2021, 11:45 PMxetra11
01/06/2021, 4:41 PMjim
01/06/2021, 4:44 PMAlexandru Hadăr
01/06/2021, 9:56 PMpy
01/06/2021, 9:58 PMpy
01/07/2021, 12:40 AMModifier.shortcuts
but it’s not clear that it’s what I want (plus, I really want to know if the key is down, rather than an event when it’s pressed)py
01/07/2021, 12:42 AMpy
01/07/2021, 5:02 PMpy
01/07/2021, 5:03 PMmodifier = Modifier
.wrapContentHeight()
.clickable(
onClick = {
onItemClickEvent(ROW_CLICK)
},
onDoubleClick = {
onItemClickEvent(ROW_DOUBLE_CLICK)
}
)
This plays a ripple and then after about 500ms only the callback is invoked. Pretty sure no one ever wants that behavior.py
01/07/2021, 5:20 PMpy
01/07/2021, 5:23 PMpy
01/07/2021, 5:51 PM