Skip to content

Commit 5dfb7df

Browse files
committed
fix(ui): update build metadata visibility immediately from all settings dialogs
1 parent d1ae58c commit 5dfb7df

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎launcher-desktop/src/main/kotlin/pl/syntaxdevteam/syntaxlauncher/desktop/ui/SyntaxLauncherApp.kt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ fun SyntaxLauncherApp(
272272
persisted == null -> CenterMessage(strings.text("ui.loading_profile"), strings.text("ui.restoring_your_settings"), true)
273273
else -> LauncherPanel(state.manifest, session, persisted!!, instanceOpenRequest,
274274
setupOpen, { setupOpen = false }, { setupOpen = true }, { instanceOpenRequest = minOf(instanceOpenRequest - 1, -1) },
275-
{ navigationBusy = it })
275+
{ navigationBusy = it }, { developerMode = it })
276276
}
277277
}
278278
}
@@ -294,6 +294,7 @@ private fun LauncherPanel(
294294
onOpenSettings: () -> Unit,
295295
onNavigateHome: () -> Unit,
296296
onNavigationBusy: (Boolean) -> Unit,
297+
onDeveloperModeChanged: (Boolean) -> Unit,
297298
) {
298299
val strings = LocalStrings.current
299300
var nickname by remember { mutableStateOf(saved.nickname) }
@@ -624,7 +625,7 @@ private fun LauncherPanel(
624625
inventory = session.instances.list(); chooseInstance(updated.id)
625626
}
626627
} finally { mutationBusy = false }
627-
}) },
628+
}, onDeveloperModeChanged = onDeveloperModeChanged) },
628629
confirmButton = { TextButton(onClick = onCloseSettings, enabled = !savingMemory) { Text(strings.text("ui.close")) } })
629630
}
630631

0 commit comments

Comments
 (0)