diff --git a/desktop/src/main/kotlin/io/spine/examples/pingh/desktop/Mentions.kt b/desktop/src/main/kotlin/io/spine/examples/pingh/desktop/Mentions.kt index 47fd978a..792f4aab 100644 --- a/desktop/src/main/kotlin/io/spine/examples/pingh/desktop/Mentions.kt +++ b/desktop/src/main/kotlin/io/spine/examples/pingh/desktop/Mentions.kt @@ -192,7 +192,7 @@ private fun ToolBar( } /** - * Displays the menu of the mentions page. + * Displays the menu of the Mentions page. * * @param flow The flow for managing the lifecycle of mentions. * @param toSettingsPage The navigation to the 'Settings' page. diff --git a/desktop/src/main/kotlin/io/spine/examples/pingh/desktop/Menu.kt b/desktop/src/main/kotlin/io/spine/examples/pingh/desktop/Menu.kt index 85c8d44c..6c2a8513 100644 --- a/desktop/src/main/kotlin/io/spine/examples/pingh/desktop/Menu.kt +++ b/desktop/src/main/kotlin/io/spine/examples/pingh/desktop/Menu.kt @@ -70,7 +70,7 @@ import kotlinx.coroutines.delay import kotlinx.coroutines.launch /** - * Displays an icon button that displays the menu when clicked. + * Displays an icon button and opens a menu when the button is clicked. * * The menu is located at the bottom of the icon, shifting to the left. * @@ -118,9 +118,10 @@ internal fun Menu( delay(200.milliseconds) isTogglingAllowed = true } - }, - content = { MenuContent(scope, items) } - ) + } + ) { + MenuContent(scope, items) + } } } }