Skip to content

Commit

Permalink
Update ReadMe for JDK 17 desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
yunjaena committed Nov 21, 2024
1 parent 3e6a565 commit 01ed584
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.desktop.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@ fun main() = application {
var restartRequired by remember { mutableStateOf(false) }
var downloading by remember { mutableStateOf(0F) }
var initialized by remember { mutableStateOf(false) }
val download: Download = remember { Builder().github().build() }

LaunchedEffect(Unit) {
withContext(Dispatchers.IO) {
KCEF.init(builder = {
installDir(File("kcef-bundle"))

/*
Add this code when using JDK 17.
Builder().github {
release("jbr-release-17.0.10b1087.23")
}.buffer(download.bufferSize).build()
*/
progress {
onDownloading {
downloading = max(it, 0F)
Expand Down

0 comments on commit 01ed584

Please sign in to comment.