David W
12/27/2021, 1:58 AMisInEditMode()
from standard Android.olonho
12/27/2021, 8:17 AMseb
12/27/2021, 8:37 AMolonho
12/27/2021, 11:09 AMalexey.tsvetkov
12/27/2021, 2:28 PMDavid W
12/27/2021, 3:37 PMif (!modVariant.mod(SL.access).isEnabled(modVariant)) {
SmolButton(
modifier = Modifier
.padding(top = 4.dp)
.align(Alignment.CenterHorizontally),
onClick = {
GlobalScope.launch { SL.access.enableModVariant(modVariant) }
}
) {
Text("Enable")
}
}
is the part that, when commented out, allows the Previewer to work.Alexander Kurasov[JB]
12/28/2021, 6:27 PM